0.2.1s
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user