fileSetLastModified
Description
Sets the date when an on-disk or in-memory file was most recently modified.
Categories
Related
History
ColdFusion
8: Added this function.
Syntax
FileSetLastModified(filepath, date)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| date | A valid ColdFusiondate or datetime. | ||
| filepath | An absolute path to an on-disk or in-memory file on the server. |
Example
<cfscript>
FileSetLastModified("c:\temp\test1.txt", "#Now()#");
WriteOutput(#GetFileInfo("c:\temp\test1.txt").lastmodified#);
</cfscript>