December 04, 2009 [Issue 3570] New: mkdirRecurse throws exception on trailing empty directory | ||||
---|---|---|---|---|
| ||||
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 [Issue 3570] mkdirRecurse throws exception on trailing empty directory | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jesse Phillips | 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: ------- |
Copyright © 1999-2021 by the D Language Foundation