diff --git a/utils_v2/system/files.py b/utils_v2/system/files.py index b833640..76c69d8 100644 --- a/utils_v2/system/files.py +++ b/utils_v2/system/files.py @@ -122,9 +122,6 @@ def get_parent_directory(path: str, depth: int = 1) -> str: for _ in range(depth): path = os.path.split(path)[0] return path or "/" - # if depth <= 0: return path - # else: return get_parent_directory(pathlib.Path(path).parent.absolute(), depth - 1) - # ---------------------------------------------------------------------------------------------------------------------