From f0e0a1500bcc32ca87e8f3a3cc77c905c2dc12cd Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 1 Apr 2019 11:06:29 -0700 Subject: [PATCH] Use internal _path attribute of Hierarchy object --- rbackup/hierarchy/hierarchy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rbackup/hierarchy/hierarchy.py b/rbackup/hierarchy/hierarchy.py index e5b4f95..e2037c4 100644 --- a/rbackup/hierarchy/hierarchy.py +++ b/rbackup/hierarchy/hierarchy.py @@ -79,7 +79,7 @@ class Hierarchy(PathLike): :rtype: str """ - return self.path.name + return self._path.name @property def metadata_path(self): @@ -91,7 +91,7 @@ class Hierarchy(PathLike): :rtype: path-like object """ - return self.path / ".metadata" + return self._path / ".metadata" def read_metadata(self): """Read this repository's metadata from its file and