Projects STRLCPY deduplicator Commits d06ca789
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    src/scanner.rs
    skipped 60 lines
    61 61   .map(|fpath| File {
    62 62   path: fpath.clone(),
    63 63   hash: None,
    64  - size: Some(fs::metadata(fpath).unwrap().len()),
     64 + size: Some(
     65 + fs::metadata(fpath)
     66 + .map(|metadata| metadata.len())
     67 + .unwrap_or_default(),
     68 + ),
    65 69   })
    66 70   .filter(|file| filters::is_file_gt_min_size(app_opts, file))
    67 71   .collect();
    skipped 16 lines
    84 88   IndexCritera::Hash => {
    85 89   file.hash = Some(hash_file(&file.path).unwrap_or_default());
    86 90   store
    87  - .entry(file.clone().hash.unwrap())
     91 + .entry(file.clone().hash.unwrap_or_default())
    88 92   .and_modify(|fileset| fileset.push(file.clone()))
    89 93   .or_insert_with(|| vec![file]);
    90 94   }
    skipped 44 lines
Please wait...
Page is in error, reload to recover