mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-29 10:26:12 +01:00
Updated for remove folder
This commit is contained in:
parent
d735b2ca31
commit
b6dd41b533
1 changed files with 2 additions and 3 deletions
|
@ -79,9 +79,8 @@ class Utilities:
|
|||
@staticmethod
|
||||
def remove_folder_if_exists(folder: Path) -> None:
|
||||
""" Clean the old folders. """
|
||||
directory = Path(folder)
|
||||
if directory.exists():
|
||||
shutil.rmtree(directory)
|
||||
if folder.exists():
|
||||
shutil.rmtree(folder)
|
||||
|
||||
@staticmethod
|
||||
def create_folder(path: Path, folder: str) -> None:
|
||||
|
|
Loading…
Reference in a new issue