mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Updated path
This commit is contained in:
parent
2768a9f813
commit
5b733d0009
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue