Some ntfs files throw a panic on assert(f.is_file())
darakian opened this issue · 1 comments
darakian commented
Relevant code is currently on line 152 in the hash_and_update function
assert!(input.file_paths.iter().next().expect("Error reading path from struct").is_file());
Some windows system files fail this assertion and throw a panic. Interestingly the variable input comes from data populated in the traverse_and_spawn function here
else if current_path.is_file() && !(current_path.symlink_metadata().expect("Error getting Symlink Metadata").file_type().is_symlink()){
sender.send(Fileinfo::new(0, current_path.metadata().expect("Error with current path length").len(), /*fs::canonicalize(*/current_path.to_path_buf()/*).expect("Error canonicalizing path in struct creation.")*/)).expect("Error sending new fileinfo");
If anyone with a windows system would like to look into this the help would be appreciated.
darakian commented
Closing this stale issue. The code in question no longer exists and no one has reported the issue since.