Adobe COLDFUSION 9 Manual page 274

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Developing CFML Applications
Supported functions
The following file functions are supported for in-memory files:
• FileIsEOF
• FileReadBinary
• Filemove
• Filecopy
• FileReadLine
• FileExists
• FileOpen
• FileWriteln
• FileClose
• FileRead
• FileDelete
• DirectoryExists
• FileSetLastModified
• GetFileInfo
• GetDirectoryFromPath
• GetFileFromPath
• ImageNew
• ImageRead
• ImageWrite
• ImageWriteBase64
• IsImageFile
• IsPDFFile
• FileSetLastModified
Example
The following syntax explains the function
<cftry>
<cffile action="write" file="ram:///a.txt" output="Testing the function FileSetLastModified">
<cfset date="12/12/2007">
<cfscript>
FileSetLastModified("ram:///a.txt", "#date#");
sleep(1000);
WriteOutput(#GetFileInfo("ram:///a.txt").lastmodified#);
</cfscript>
<cfcatch>
<cfset PrintException(cfcatch)>
</cfcatch>
</cftry>
<cf_expectedresults>{ts '2007-12-12 00:00:00'}
</cf_expectedresults>
FileSetLastModified()
Last updated 8/5/2010
269

Advertisement

Table of Contents
loading

Table of Contents