(20241128) Comments removed.
This commit is contained in:
@@ -122,9 +122,6 @@ def get_parent_directory(path: str, depth: int = 1) -> str:
|
|||||||
for _ in range(depth): path = os.path.split(path)[0]
|
for _ in range(depth): path = os.path.split(path)[0]
|
||||||
return path or "/"
|
return path or "/"
|
||||||
|
|
||||||
# if depth <= 0: return path
|
|
||||||
# else: return get_parent_directory(pathlib.Path(path).parent.absolute(), depth - 1)
|
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user