Added file size

This commit is contained in:
Dimitris Zlatanidis 2024-04-07 22:23:00 +03:00
parent ffcf3a5cf4
commit 7b1b97e0d0
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- Added:
* Added maximum parallel for downloading in the config file
* Added --pkg-version option in search command
* Added display the file size with the command find
- Updated:
* Updated to exclude packages from slack_extra repository (Thanks to Marav)

View file

@ -39,7 +39,10 @@ class FindInstalled(Configs):
def view_matched_packages(self) -> None:
for package in self.matching:
print(f'{self.cyan}{package}{self.endc}')
name: str = self.utils.split_package(package)['name']
pkg_size: int = self.utils.count_file_size(name)
size: str = self.utils.convert_file_sizes(pkg_size)
print(f'{self.cyan}{package}{self.endc} ({size})')
self.view_summary()
def view_summary(self) -> None: