fileSetLastModified

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

fileSetLastModified(filePath, date) → returns void

Argument Reference for the fileSetLastModified function

filePath

Required: Yes
No Help Available

date

Required: Yes
No Help Available

Examples sample code invoking the fileSetLastModified function


Script Syntax

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

Fork me on GitHub