We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ccce69 commit 13de15fCopy full SHA for 13de15f
lib/src/api.rs
@@ -1120,7 +1120,20 @@ impl OntoEnv {
1120
continue;
1121
}
1122
for entry in walkdir::WalkDir::new(location) {
1123
- let entry = entry?;
+ let entry = match entry {
1124
+ Ok(entry) => entry,
1125
+ Err(err) => {
1126
+ if self.config.strict {
1127
+ return Err(err.into());
1128
+ }
1129
+ let path = err
1130
+ .path()
1131
+ .map(|p| p.display().to_string())
1132
+ .unwrap_or_else(|| location.display().to_string());
1133
+ warn!("Skipping {path} due to filesystem error: {err}");
1134
+ continue;
1135
1136
+ };
1137
if entry.file_type().is_file() && self.config.is_included(entry.path()) {
1138
files.insert(OntologyLocation::File(entry.path().to_path_buf()));
1139
0 commit comments