|
ColdFusion 9.0 Resources |
GetVFSMetaDataDescriptionGets in-memory virtual file system metadata. ReturnsA structure that contains information about in-memory virtual file system. CategoryFunction syntaxgetVFSMetaData (fileSystemType) See alsoWorking with in-memory files in the Developing ColdFusion Applications. HistoryColdFusion 9: Added this function Parameters
UsageThe function returns a structure with the following keys:
Example<cfset myroot = hash(getDirectoryFromPath(getCurrentTemplatePath())) >
<cfset name = "ram:///"&myroot&"/">
<cffile action="append" file="#name#" output="created at #now()#">
<cfset contents = fileRead(name)>
<cfdump var="#contents#">
<cfdump var="#getVFSMetaData("ram")#">
The example works only if in-memory virtual file system is enabled. |