Updated comments

This commit is contained in:
Dimitris Zlatanidis 2023-11-27 18:26:20 +02:00
parent 7c055f1048
commit 8a2d2f00d9

View file

@ -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