[Mono-bugs] [Bug 80675][Maj] New - 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 13:21:39 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 joeshaw at novell.com.

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

--- shadow/80675	2007-01-30 13:21:39.000000000 -0500
+++ shadow/80675.tmp.15388	2007-01-30 13:21:39.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 80675
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: joeshaw at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Directory.GetLastWriteTime() on non-existent directory doesn't throw exception
+
+I think I've come across a bug, running 1.2.2.1.  Using boo:
+
+>>> Directory.GetLastWriteTimeUtc("/bin")
+1/5/2007 5:27:21 PM
+>>> Directory.GetLastWriteTimeUtc("/jwoefjoaiwejiof")
+1/1/1601 12:00:00 AM
+>>> DateTime.MinValue
+1/1/0001 12:00:00 AM
+
+I believe that second line should throw an IOException, based on the docs:
+http://msdn2.microsoft.com/en-us/library/system.io.directory.getlastwritetime(VS.71).aspx


More information about the mono-bugs mailing list