Skip to content
Snippets Groups Projects

Ingest

Merged Ghost User requested to merge ingest into main
2 files
+ 20
9
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
6
@@ -145,12 +145,18 @@ async fn ingest_structure(
};
if entry.path().is_file() {
// TODO: this conversion should probably take place within drs
let path = Utf8PathBuf::from_path_buf(entry.path().to_path_buf()).unwrap();
// TODO: this should too
if !structure.verify_path(&path) {
continue;
}
let path = match Utf8PathBuf::from_path_buf(entry.path().to_path_buf()) {
Ok(p) => p,
Err(e) => {
warn!(
"{} not a valid drs file, has non UTF8 characters in path:\n{:?}",
entry.path().display(),
e
);
skipped += 1;
continue;
}
};
let f = match structure.file_from_path(&path) {
Ok(f) => f,
Loading