This commit is contained in:
Marc Beninca 2024-09-17 22:42:19 +02:00
parent 313cc30aec
commit b05de437d0
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -69,7 +69,11 @@ def read_file_text(file_path: Path, charset: str = CHARSET) -> str:
def wipe(path: Path) -> None:
"""Wipe provided path, whether directory or file."""
"""Wipe provided path, whether directory or file.
:param path: target path
:type path: Path
"""
try:
shutil.rmtree(path)
except NotADirectoryError: