Skip to content

Commit 17468e9

Browse files
committed
use buffer_size
1 parent 671a714 commit 17468e9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,10 +1526,11 @@ def hash_file(file: Path, buffer_size: int = 65536) -> str:
15261526
def hash_file_or_dir(file_or_dir: Path, buffer_size: int = 65536) -> str:
15271527
if file_or_dir.is_dir():
15281528
return combine_hashes(
1529-
[hash_string(file_or_dir.name)] + [hash_file_or_dir(f) for f in file_or_dir.iterdir()]
1529+
[hash_string(file_or_dir.name)]
1530+
+ [hash_file_or_dir(f, buffer_size=buffer_size) for f in file_or_dir.iterdir()]
15301531
)
15311532
else:
1532-
return hash_file(file_or_dir)
1533+
return hash_file(file_or_dir, buffer_size=buffer_size)
15331534

15341535

15351536
def generate_problem_uuid() -> str:

0 commit comments

Comments
 (0)