|
DescriptionGets in-memory virtual
file system metadata.
ReturnsA structure that contains information
about in-memory virtual file system.
Function syntaxgetVFSMetaData (fileSystemType)
See alsoWorking with in-memory files
in the Developing ColdFusion Applications.
HistoryColdFusion 9: Added this function
Parameters
Parameter
|
Description
|
fileSystemType
|
The in-memory file system type. ColdFusion
9 supports only RAM.
|
UsageThe function returns a structure
with the following keys:
Parameter
|
Description
|
Enabled
|
If support for in-memory virtual file system
is enabled. This is the only key that is returned within the structure
if in-memory virtual file system is disabled.
|
Limt
|
The memory limit in bytes for in-memory
virtual file system.
|
Used
|
The memory out of the specified memory limit
that is in use (in bytes).
|
Free
|
The free memory in bytes.
|
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.
|
|
|