Use internal _path attribute of Hierarchy object
This commit is contained in:
parent
489a0cccad
commit
f0e0a1500b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user