sets the modification and access dates for a file to be the current date.
- SetFileDate["file",date] sets the modification and access dates to be the specified date.
- The date can be given as a date object or in the date list format as obtained from DateList.
- SetFileDate["file",date,"type"] sets if possible the specified type of date for a file. Types of dates include "Access", "Creation", and "Modification". All represents all types of dates.
- SetFileDate[File["file"]] is also supported.
Examplesopen allclose all
Introduced in 1991
|Updated in 2008