[Mono-bugs] [Bug 71212][Nor] Changed - System.IO.File.SetLastWriteTime modifies the Creation time

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Jan 2005 13:59: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 cgaisford@novell.com.


--- shadow/71212	2005-01-13 11:51:32.000000000 -0500
+++ shadow/71212.tmp.19420	2005-01-13 13:59:50.000000000 -0500
@@ -98,6 +98,23 @@
      The access and modification times of the file named by path or
 referenced by fd are changed as specified by the argument times."
 Is there a macos-specific syscall that sets creation time?
+------- Additional Comments From cgaisford@novell.com  2005-01-13 13:59 -------
+FSGetCatalogInfo and FSSetCatalogInfo allow you to get and set the
+FSCatalogInfo structure which contains:
+UTCDateTime createDate;
+UTCDateTime contentModDate;
+UTCDateTime accessDate;
+(there are some other dates but none that .NET would support)
+In Apple's documentation they state "Note that file systems other than
+AFP, HFS and HFS Plus do not generally support creation dates".  That
+may be why the man pages report as they do.  The default file system
+is most likely going to be HFS Plus which does support creation dates.