[Mono-bugs] [Bug 79806][Nor] New - Directory.CreateDirectory silently fails
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Nov 2 10:21:03 EST 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by colin at breame.net.
http://bugzilla.ximian.com/show_bug.cgi?id=79806
--- shadow/79806 2006-11-02 10:21:03.000000000 -0500
+++ shadow/79806.tmp.11859 2006-11-02 10:21:03.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 79806
+Product: Mono: Runtime
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: io-layer
+AssignedTo: dick at ximian.com
+ReportedBy: colin at breame.net
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Directory.CreateDirectory silently fails
+
+If a file already exists with the name of the directory to be created,
+Directory.CreateDirectory fails silently (see [1]).
+
+Apparently, testing on the MS runtime gives:
+
+MS.NET 1.1: It's failing silently.
+MS.NET 2.0: It's failing with System.IO.IOException: Cannot create
+'{0}' because a file or directory with the same name already exists.
+
+I suggest that mono should behave as the MS runtime.
+
+[1] testcase:
+
+using System.IO;
+public class test_t {
+ public static void Main() {
+ File.CreateText("test").Close();
+ Directory.CreateDirectory("test");
+ Directory.CreateDirectory("test1");
+ }
+}
More information about the mono-bugs
mailing list