More lenient file path matchers

This commit is contained in:
Kirill Bulatov 2023-11-14 00:19:51 +02:00
parent b8be720490
commit 1612c90052
3 changed files with 24 additions and 3 deletions

View file

@ -3598,7 +3598,7 @@ impl BackgroundScanner {
for entry in &mut new_entries {
state.reuse_entry_id(entry);
if entry.is_dir() {
if state.should_scan_directory(&entry, &job.path.join(&entry.path)) {
if state.should_scan_directory(&entry, &root_abs_path.join(&entry.path)) {
job_ix += 1;
} else {
log::debug!("defer scanning directory {:?}", entry.path);