Updated path

This commit is contained in:
Dimitris Zlatanidis 2023-04-06 17:45:55 +03:00
parent 2768a9f813
commit 5b733d0009

View file

@ -184,7 +184,7 @@ class Utilities:
raise SystemExit(f"\n{self.configs.prog_name}: {self.bred}Error{self.endc}: {message}.\n")
@staticmethod
def get_file_size(file):
def get_file_size(file: Path) -> str:
""" Get the file size and converted to units. """
unit: str = 'KB'
file_size = Path(file).stat().st_size