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