Commit 6b1b314
committed
fs: remove broken symlinks in rmSync
Use std::filesystem::symlink_status() instead of status() so rmSync does not
follow symlinks when determining file type. This allows unlinking broken
symlinks (and symlinks to directories) instead of treating them as not_found.1 parent 71d4fcb commit 6b1b314
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
| 1639 | + | |
1640 | 1640 | | |
1641 | 1641 | | |
1642 | 1642 | | |
| |||
0 commit comments