[Mono-bugs] [Bug 53236][Min] Changed - Trying to create a FileStream in a non-existant directory throws the wrong exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 2 Feb 2004 08:09:09 -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.


--- shadow/53236	2004-02-02 08:08:23.000000000 -0500
+++ shadow/53236.tmp.19103	2004-02-02 08:09:09.000000000 -0500
@@ -60,6 +60,11 @@
 I'm attaching a patch that moves the check that raises the exception
 from File.Create to FileStream's constructor, 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
+------- Additional Comments From iain@mccoy.id.au  2004-02-02 08:09 -------
+Created an attachment (id=6588)
+moved check for directory existence from File.Create to FileStream constructor