December 04, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3570

           Summary: mkdirRecurse throws exception on trailing empty
                    directory
           Product: D
           Version: 2.036
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: Jesse.K.Phillips+D@gmail.com


--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D@gmail.com> 2009-12-03 16:51:34 PST ---
If the directory passed to mkdirRecurse ends with a backslash then an exception when the path provided ends with a backslash.

std.file.FileException: C:\fake\here\: Cannot create a file when that file already exists.

import std.file;

void main() {
    auto dir = "C:\\fake\\here\\";

    mkdirRecurse(dir);
}

The directories are correctly created. The code below works without throwing an exception.

import std.file;

void main() {
    auto dir = "C:\\fake\\here";

    mkdirRecurse(dir);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 15, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3570


Shin Fujishiro <rsinfu@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from Shin Fujishiro <rsinfu@gmail.com> 2010-10-15 10:55:24 PDT ---
Fixed in the svn trunk r2104.

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