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 1a8857d commit b14d26aCopy full SHA for b14d26a
csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/DependencyManager.cs
@@ -439,6 +439,25 @@ private IEnumerable<FileInfo> GetAllFiles()
439
files = files.Where(f => !f.FullName.StartsWith(options.DotNetPath, StringComparison.OrdinalIgnoreCase));
440
}
441
442
+ files = files.Where(f =>
443
+ {
444
+ try
445
446
+ if (f.Exists)
447
448
+ return true;
449
+ }
450
+
451
+ progressMonitor.Log(Severity.Warning, $"File {f.FullName} could not be processed.");
452
+ return false;
453
454
+ catch (Exception ex)
455
456
+ progressMonitor.Log(Severity.Warning, $"File {f.FullName} could not be processed: {ex.Message}");
457
458
459
+ });
460
461
files = new FilePathFilter(sourceDir, progressMonitor).Filter(files);
462
return files;
463
0 commit comments