Sorting.
This commit is contained in:
parent
3ccc66b5d7
commit
dd5cc6ffab
@ -13,9 +13,13 @@ fn main() {
|
||||
for entry in WalkDir::new(dir) {
|
||||
let entry = entry.unwrap();
|
||||
if entry.file_type().is_file() {
|
||||
eprintln!("{}", entry.path().display());
|
||||
files.push(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
files.sort_by_key(|file| file.path().to_owned());
|
||||
for f in files {
|
||||
println!("{}", f.path().display());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user