Skip to content

Commit e0b1e7d

Browse files
authored
Merge branch 'main' into workflow-node-execution-event-ordering
2 parents f2068cf + 18af72c commit e0b1e7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

invokeai/backend/util/util.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,9 @@ def directory_size(directory: Path) -> int:
4040
Return the aggregate size of all files in a directory (bytes).
4141
"""
4242
sum = 0
43-
for root, dirs, files in os.walk(directory):
43+
for root, _, files in os.walk(directory):
4444
for f in files:
4545
sum += Path(root, f).stat().st_size
46-
for d in dirs:
47-
sum += Path(root, d).stat().st_size
4846
return sum
4947

5048

0 commit comments

Comments
 (0)