Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Preserving File Timestamps

From: antonr:lexicon at: 13-May-2004 22:45

This can help you:
>> get-modes %"" 'file-modes
== [creation-date access-date modification-date owner-write archived hidden system]
>> write %afile "hi" >> get-modes %afile get-modes %"" 'file-modes
== [creation-date: 13-May-2004/22:42:32+10:00 access-date: 13-May-2004/22:43:15+10:00 modification-date: 13-May-2004/22:43:15+10:00...
>> set-modes %afile [creation-date: 12-May-2004/0:00:00+10:00] >> get-modes %afile get-modes %"" 'file-modes
== [creation-date: 12-May-2004/0:00+10:00 access-date: 13-May-2004/22:44:26+10:00 modification-date: 13-May-2004/22:43:15+10:00 own...
>> get-modes %afile [creation-date]
== [creation-date: 12-May-2004/0:00+10:00] Anton.