mirror of
https://github.com/darakian/ddh.git
synced 2026-09-10 07:06:21 -04:00
canonicalize and back
This commit is contained in:
parent
02fa5fce44
commit
48a967105c
|
|
@ -54,6 +54,8 @@ pub fn deduplicate_dirs<P: AsRef<Path> + Sync>(search_dirs: Vec<P>) -> (Vec<File
|
|||
}
|
||||
|
||||
fn traverse_and_spawn(current_path: &Path, sender: Sender<ChannelPackage>) -> (){
|
||||
let can_path = current_path.canonicalize().expect("Error canonicalizing path");
|
||||
let current_path = can_path.as_path();
|
||||
println!("Processing {:?}.\n Metadata {:?}",
|
||||
current_path,
|
||||
current_path.metadata().expect("Error unwrapping metadata")
|
||||
|
|
|
|||
Loading…
Reference in a new issue