[Mono-bugs] [Bug 80675][Maj] Changed - Directory.GetLastWriteTime() on non-existent directory doesn't throw exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 30 14:05:27 EST 2007


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 miguel at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=80675

--- shadow/80675	2007-01-30 13:54:00.000000000 -0500
+++ shadow/80675.tmp.16352	2007-01-30 14:05:27.000000000 -0500
@@ -58,6 +58,15 @@
 System.IO.Directory.GetLastWriteTimeUtc ("C:\\DontExist");
 12:20 < jchambers> returns:
 12:20 < jchambers> {1/1/1601 12:00:00 AM}
 
 *sigh* Compatibility blah blah blah.  I will route around the damage
 in Beagle.
+
+------- Additional Comments From miguel at ximian.com  2007-01-30 14:05 -------
+.NET 2.0 changed the semantics, as documented:
+
+http://msdn2.microsoft.com/en-us/library/system.io.file.getlastwritetimeutc.aspx
+
+"If the file described in the path parameter does not exist, this
+method returns 12:00 midnight, January 1, 1601 A.D. (C.E.) Coordinated
+Universal Time (UTC)."


More information about the mono-bugs mailing list