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 c80631d commit 9ab12c4Copy full SHA for 9ab12c4
crates/oxide/src/scanner/detect_sources.rs
@@ -1,3 +1,4 @@
1
+use crate::scanner::auto_source_detection::IGNORED_CONTENT_DIRS;
2
use crate::GlobEntry;
3
use fxhash::FxHashSet;
4
use globwalk::DirEntry;
@@ -101,6 +102,17 @@ pub fn resolve_globs(
101
102
continue;
103
}
104
105
+ if IGNORED_CONTENT_DIRS
106
+ .iter()
107
+ .any(|dir| match path.file_name() {
108
+ Some(name) => name == *dir,
109
+ None => false,
110
+ })
111
+ {
112
+ it.skip_current_dir();
113
+ continue;
114
+ }
115
+
116
if !allowed_paths.contains(path) {
117
118
0 commit comments