Bug 11501 – dirEntries fails with "Failed to stat file" when encountering broken symlinks
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-11-11T14:39:00Z
Last change time
2013-11-13T13:15:52Z
Assigned to
nobody
Creator
thelastmammoth
Comments
Comment #0 by thelastmammoth — 2013-11-11T14:39:52Z
on posix (at least OSX), create a broken symlink somewhere inside a directory
dirEntries will fail when it encounters it.
correct behavior should be to skip by default broken symlinks (maybe introduce an option to throw) as try/catch is expensive; or maybe populate statbuf with special values when this happens instead of throwing.
Comment #1 by thelastmammoth — 2013-11-11T15:08:38Z
actually this problem is very annoying because we can't even write a wrapper around popFront for dirEntries that would try/catch, as if we did this there would never be an actual pop.
So when we dont' have w access to fix the said broken symlinks, we're .. stuck
Comment #2 by mike — 2013-11-13T13:15:52Z
*** This issue has been marked as a duplicate of issue 8298 ***