Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/project/scanner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,16 @@ pub fn scan(root: &Path) -> Result<Vec<ProjectAsset>> {
.into_iter()
.filter_entry(|entry| !is_ignored(entry.path()))
{
let entry = entry?;
// Skip entries that fail with permission errors instead of failing the entire scan
let entry = match entry {
Ok(e) => e,
Err(err) => {
// Log the error but continue scanning
tracing::debug!("Skipping inaccessible path: {}", err);
continue;
}
};

if !entry.file_type().is_file() {
continue;
}
Expand Down