Use internal _path attribute of Hierarchy object

This commit is contained in:
Eric Torres 2019-04-01 11:06:29 -07:00
parent 489a0cccad
commit f0e0a1500b

View File

@ -79,7 +79,7 @@ class Hierarchy(PathLike):
:rtype: str :rtype: str
""" """
return self.path.name return self._path.name
@property @property
def metadata_path(self): def metadata_path(self):
@ -91,7 +91,7 @@ class Hierarchy(PathLike):
:rtype: path-like object :rtype: path-like object
""" """
return self.path / ".metadata" return self._path / ".metadata"
def read_metadata(self): def read_metadata(self):
"""Read this repository's metadata from its file and """Read this repository's metadata from its file and