[Issue 11501] New: dirEntries fails with "Failed to stat file" when encountering broken symlinks
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 11 14:39:53 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11501
Summary: dirEntries fails with "Failed to stat file" when
encountering broken symlinks
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: major
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: thelastmammoth at gmail.com
--- Comment #0 from thelastmammoth at gmail.com 2013-11-11 14:39:52 PST ---
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.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list