www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11501] New: dirEntries fails with "Failed to stat file" when encountering broken symlinks

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: thelastmammoth gmail.com



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: -------
Nov 11 2013
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11501




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

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 11 2013
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11501


Mike Wey <mike-wey planet.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mike-wey planet.nl
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 8298 ***

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 13 2013