[Mono-bugs] [Bug 77641][Nor] New - [PATCH] File.Get****Time should not throw IOException if path does not exist

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Feb 25 06:28:30 EST 2006


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 gert.driesen at pandora.be.

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

--- shadow/77641	2006-02-25 06:28:30.000000000 -0500
+++ shadow/77641.tmp.27869	2006-02-25 06:28:30.000000000 -0500
@@ -0,0 +1,26 @@
+Bug#: 77641
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] File.Get****Time should not throw IOException if path does not exist
+
+In 2.0 profile, System.IO.File's GetCreationTime(Utc), GetLastAccessTime
+(Utc) and GetLastWriteTime(Utc) should no longer throw an IOException if 
+the specified path does not exist.
+
+Instead a DateTime representing the January 1st 1601 (UTC) should be 
+returned.
+
+The attached path fixes this and the corresponding unit tests.


More information about the mono-bugs mailing list