mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-26 09:58:31 +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
|
||||
def remove_file_if_exists(path: Path, file: str) -> None:
|
||||
""" Clean the old files. """
|
||||
""" Remove the old files. """
|
||||
archive: Path = Path(path, file)
|
||||
if archive.is_file():
|
||||
archive.unlink()
|
||||
|
||||
@staticmethod
|
||||
def remove_folder_if_exists(folder: Path) -> None:
|
||||
""" Clean the old folders. """
|
||||
""" Remove the old folders. """
|
||||
if folder.exists():
|
||||
shutil.rmtree(folder)
|
||||
|
||||
|
@ -113,7 +113,7 @@ class Utilities(Configs):
|
|||
|
||||
@staticmethod
|
||||
def is_option(options: tuple, flags: list) -> bool:
|
||||
""" Checking if the option is applied. """
|
||||
""" Returns True if option applied. """
|
||||
for option in options:
|
||||
if option in flags:
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue