Commit 38411db
Fix FileScanner crash on Parallel.ForEach AggregateException
Wrap both the parallel and sequential subdirectory loops with try/catch
for IOException, UnauthorizedAccessException, and PathTooLongException.
Also catch AggregateException from Parallel.ForEach to prevent crashes
when scanning directories with problematic paths (symlink loops, network
mounts timing out, paths exceeding OS limits).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5dd9806 commit 38411db
1 file changed
Lines changed: 32 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
341 | 359 | | |
342 | 360 | | |
343 | 361 | | |
| |||
349 | 367 | | |
350 | 368 | | |
351 | 369 | | |
352 | | - | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
353 | 378 | | |
354 | 379 | | |
355 | 380 | | |
| |||
0 commit comments