fileSetLastModified

Sets the date when an on-disk or in-memory file was most recently modified.

fileSetLastModified(filePath, date) → returns void

fileSetLastModified Argument Reference

filePath string
Required

An absolute path to an on-disk or in-memory file on the server

date date
Required

The date to set for when the file was last modified

Examples sample code invoking the fileSetLastModified function

<cfscript> 
 fileSetLastModified("c:	emp	est1.txt", "#now()#"); 
    writeOutput(#getFileInfo("c:	emp	est1.txt").lastmodified#); 
 </cfscript>  

Fork me on GitHub