fix: handle case for empty filename in size computation

pull/2310/head
yxf 6 months ago committed by Lawrence Li
parent 9272d5a9c7
commit 0dfdafcd16

@ -49,6 +49,9 @@ def calculate_file_size(
selected_files = []
extra_files = []
if not filename:
return sum(f.size for f in files if getattr(f, 'size', None) is not None)
for sibling in files:
if sibling.size is None:
continue

Loading…
Cancel
Save