Commit 0a3f20d
committed
Fix 'is a directory' error in copyright holder migration
- Add isDirectory helper function to check for directories and symlinks to directories
- Use helper in updateLicenseHolder and wouldUpdateLicenseHolder functions
- Resolves issue where filepath.Walk's fi.IsDir() misses symlinks to directories
- Fixes error: 'read path: is a directory' reported in PR feedback
This prevents crashes when processing repositories with symbolic links
that point to directories, such as version directories in test fixtures.1 parent 19c688d commit 0a3f20d
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
366 | 375 | | |
367 | 376 | | |
368 | 377 | | |
369 | 378 | | |
370 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
371 | 389 | | |
372 | 390 | | |
373 | 391 | | |
| |||
435 | 453 | | |
436 | 454 | | |
437 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
438 | 465 | | |
439 | 466 | | |
440 | 467 | | |
| |||
0 commit comments