We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 671a714 commit 17468e9Copy full SHA for 17468e9
bin/util.py
@@ -1526,10 +1526,11 @@ def hash_file(file: Path, buffer_size: int = 65536) -> str:
1526
def hash_file_or_dir(file_or_dir: Path, buffer_size: int = 65536) -> str:
1527
if file_or_dir.is_dir():
1528
return combine_hashes(
1529
- [hash_string(file_or_dir.name)] + [hash_file_or_dir(f) for f in file_or_dir.iterdir()]
+ [hash_string(file_or_dir.name)]
1530
+ + [hash_file_or_dir(f, buffer_size=buffer_size) for f in file_or_dir.iterdir()]
1531
)
1532
else:
- return hash_file(file_or_dir)
1533
+ return hash_file(file_or_dir, buffer_size=buffer_size)
1534
1535
1536
def generate_problem_uuid() -> str:
0 commit comments