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)
|
||||
return total
|
||||
|
||||
def get_size_edge(type_searсh: bool, file_list: list[str]):
|
||||
if type_searсh:
|
||||
def get_size_edge(type_search: bool, file_list: list[str]):
|
||||
if type_search:
|
||||
result = min(file_list, key=lambda f: Path(f).stat().st_size)
|
||||
else:
|
||||
result = max(file_list, key=lambda f: Path(f).stat().st_size)
|
||||
|
||||
Reference in New Issue
Block a user