This commit is contained in:
Nyako
2026-06-06 22:19:53 +03:00
parent b2b2145c37
commit 627d3d55cc
+2 -2
View File
@@ -34,8 +34,8 @@ def get_file_list_size(file_list: list[str]):
total += os.path.getsize(fp) total += os.path.getsize(fp)
return total return total
def get_size_edge(type_searсh: bool, file_list: list[str]): def get_size_edge(type_search: bool, file_list: list[str]):
if type_searсh: if type_search:
result = min(file_list, key=lambda f: Path(f).stat().st_size) result = min(file_list, key=lambda f: Path(f).stat().st_size)
else: else:
result = max(file_list, key=lambda f: Path(f).stat().st_size) result = max(file_list, key=lambda f: Path(f).stat().st_size)