Skip to content

Commit

Permalink
Mod: Update docstring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Labbeti committed Nov 23, 2023
1 parent 1b772b5 commit 6611aa1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aac_datasets/utils/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@


def safe_rmdir(
root: str,
root: Union[str, Path],
rm_root: bool = True,
error_on_non_empty_dir: bool = True,
) -> List[str]:
"""Remove all empty sub-directories.
:param root: Root directory path.
:param rm_root: If True, remove the root directory. defaults to True.
:param error_on_non_empty_dir: If True, raises a RuntimeError if a subdirectory contains 1 file.
:param rm_root: If True, remove the root directory too. defaults to True.
:param error_on_non_empty_dir: If True, raises a RuntimeError if a subdirectory contains at least 1 file. Otherwise it will leave non-empty directories. defaults to True.
:returns: The list of directories paths deleted.
"""
deleted = []
Expand Down

0 comments on commit 6611aa1

Please sign in to comment.