mail-archives/mono-bugs/2003-March/004069.html

115 строки
4.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 38940][Wis] New - Directory.CreateDirectory fails when the directory already exists
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:bugzilla-daemon%40rocky.ximian.com">
<META NAME="robots" CONTENT="index,nofollow">
<LINK REL="Previous" HREF="004068.html">
<LINK REL="Next" HREF="004070.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 38940][Wis] New - Directory.CreateDirectory fails when the directory already exists
</H1>
<B>bugzilla-daemon@rocky.ximian.com
</B>
<A HREF="mailto:bugzilla-daemon%40rocky.ximian.com"
TITLE="[Mono-bugs] [Bug 38940][Wis] New - Directory.CreateDirectory fails when the directory already exists">bugzilla-daemon@rocky.ximian.com
</A><BR>
<I>Sat, 1 Mar 2003 04:47:58 -0500 (EST)</I>
<P><UL>
<LI> Previous message: <A HREF="004068.html">[Mono-bugs] [Bug 38939][Wis] New - Directory.CreateDirectory issue on Windows
</A></li>
<LI> Next message: <A HREF="004070.html">[Mono-bugs] [Bug 38941][Nor] New - Runtime tries to locate Machine.config in wrong directory
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4069">[ date ]</a>
<a href="thread.html#4069">[ thread ]</a>
<a href="subject.html#4069">[ subject ]</a>
<a href="author.html#4069">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 <A HREF="mailto:gert.driesen@pandora.be.">gert.driesen@pandora.be.</A>
<A HREF="http://bugzilla.ximian.com/show_bug.cgi?id=38940">http://bugzilla.ximian.com/show_bug.cgi?id=38940</A>
--- shadow/38940 Sat Mar 1 04:47:58 2003
+++ shadow/38940.tmp.31780 Sat Mar 1 04:47:58 2003
@@ -0,0 +1,51 @@
+Bug#: 38940
+Product: Mono/Class Libraries
+Version: unspecified
+OS:
+OS Details: Windows 2000
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+ReportedBy: <A HREF="mailto:gert.driesen@pandora.be">gert.driesen@pandora.be</A>
+QAContact: <A HREF="mailto:mono-bugs@ximian.com">mono-bugs@ximian.com</A>
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Directory.CreateDirectory fails when the directory already exists
+
+Description of Problem:
+
+System.IO.Directory.CreatDirectory fails when the directory that you
+specified already exists. On the .NET Framework runtime this does not
+cause an exception, it is considered successfull.
+
+Steps to reproduce the problem:
+1. (On Windows) Create a directory &quot;C:\TEST&quot;
+2. Execute the following code :
+
+System.IO.Directory.CreatDirectory(&quot;C:/TEST&quot;); // I use a forward slash,
+because Mono throw another exception when I use a backslash, bug filed for
+this)
+
+Actual Results:
+
+You get the following exception :
+
+System.IO.IOException: Win32 IO returned ERROR_ALREADY_EXISTS
+in &lt;0x00042&gt; 00 System.IO.Directory:RealCreateDirectory (string)
+in &lt;0x0024c&gt; 00 System.IO.Directory:CreateDirectory (string)
+in &lt;0x000e9&gt; 00 log4net.Appender.FileAppender:OpenFile (string,bool)
+in &lt;0x00050&gt; 00 log4net.Appender.FileAppender:ActivateOptions ()
+
+Expected Results:
+
+The CreateDirectory should be considered successfull, when the directory
+that you wanted to create already exists.
+
+
+How often does this happen?
+
+Always
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI> Previous message: <A HREF="004068.html">[Mono-bugs] [Bug 38939][Wis] New - Directory.CreateDirectory issue on Windows
</A></li>
<LI> Next message: <A HREF="004070.html">[Mono-bugs] [Bug 38941][Nor] New - Runtime tries to locate Machine.config in wrong directory
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#4069">[ date ]</a>
<a href="thread.html#4069">[ thread ]</a>
<a href="subject.html#4069">[ subject ]</a>
<a href="author.html#4069">[ author ]</a>
</LI>
</UL>
</body></html>