[Mono-bugs] [Bug 53290][Min] Changed - Move does not support directory as target
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 2 Feb 2004 07:47:50 -0500 (EST)
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 iain@mccoy.id.au.
http://bugzilla.ximian.com/show_bug.cgi?id=53290
--- shadow/53290 2004-02-02 07:44:25.000000000 -0500
+++ shadow/53290.tmp.18923 2004-02-02 07:47:50.000000000 -0500
@@ -1,14 +1,14 @@
Bug#: 53290
Product: Mono/Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Minor
Component: CORLIB
AssignedTo: mono-bugs@ximian.com
ReportedBy: dave-mono@earth.li
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -46,6 +46,14 @@
This works on MS.NET (move with destination a directory)
------- Additional Comments From iain@mccoy.id.au 2004-02-02 07:44 -------
Created an attachment (id=6586)
moved check for directory existence from File.Create to FileStream constructor
+
+------- Additional Comments From iain@mccoy.id.au 2004-02-02 07:47 -------
+The patch I just attached moves the check that raises the exception
+from File.Create to FileStream, where it runs whenever mode is
+FileMode.Create or FileMode.CreateNew.
+
+This is fine because File.Create just does some fiddling, largely
+argument checking, then creates a new FileStream with FileMode.Create