digitalmars.D.bugs - [Issue 3570] New: mkdirRecurse throws exception on trailing empty directory
- d-bugmail puremagic.com (33/33) Dec 03 2009 http://d.puremagic.com/issues/show_bug.cgi?id=3570
- d-bugmail puremagic.com (11/11) Oct 15 2010 http://d.puremagic.com/issues/show_bug.cgi?id=3570
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 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: -------
Dec 03 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3570 Shin Fujishiro <rsinfu gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Fixed in the svn trunk r2104. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 15 2010