mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Updated comments
This commit is contained in:
parent
7c055f1048
commit
8a2d2f00d9
1 changed files with 3 additions and 3 deletions
|
@ -57,14 +57,14 @@ class Utilities(Configs):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def remove_file_if_exists(path: Path, file: str) -> None:
|
def remove_file_if_exists(path: Path, file: str) -> None:
|
||||||
""" Clean the old files. """
|
""" Remove the old files. """
|
||||||
archive: Path = Path(path, file)
|
archive: Path = Path(path, file)
|
||||||
if archive.is_file():
|
if archive.is_file():
|
||||||
archive.unlink()
|
archive.unlink()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def remove_folder_if_exists(folder: Path) -> None:
|
def remove_folder_if_exists(folder: Path) -> None:
|
||||||
""" Clean the old folders. """
|
""" Remove the old folders. """
|
||||||
if folder.exists():
|
if folder.exists():
|
||||||
shutil.rmtree(folder)
|
shutil.rmtree(folder)
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ class Utilities(Configs):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_option(options: tuple, flags: list) -> bool:
|
def is_option(options: tuple, flags: list) -> bool:
|
||||||
""" Checking if the option is applied. """
|
""" Returns True if option applied. """
|
||||||
for option in options:
|
for option in options:
|
||||||
if option in flags:
|
if option in flags:
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue