[Issue 2838] New: std.file.rmdirRecurse fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 15 17:29:13 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2838

           Summary: std.file.rmdirRecurse fails
           Product: D
           Version: 2.027
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: graham.stjack at internode.on.net


The problem seems to be caused by incorrect behaviour of druntime's
core.sys.posix.readdir, which fails to populate the dirent's d_type field - it
is always set to 0.

This causes directories to be identified as files and thus not recursed into.


-- 



More information about the Digitalmars-d-bugs mailing list