Skip to content

Commit

Permalink
Update src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <[email protected]>
  • Loading branch information
saethlin and RalfJung authored Feb 11, 2024
1 parent 538fe2b commit 61df9d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ fn make_writeable(p: &Path) -> Result<()> {

/// Hash the metadata and size of every file in a directory, recursively.
pub fn hash_recursive(path: &Path, hasher: &mut DefaultHasher) -> Result<()> {
// We sort the entries to ensure a stable hash.
for entry in WalkDir::new(path)
.follow_links(true)
.sort_by_file_name()
Expand Down

0 comments on commit 61df9d0

Please sign in to comment.