User Guide

176 Chapter 2: ColdFusion Tags
Usage
If you use connection caching to an active FTP connection, you do not have to respecify the
username, password, or server connection attributes.
Changing a cached connection, such as changing
retryCount or timeout values, might require
reestablishing the connection.
If
action = "listDir", the attributes column returns directory or normal. Other
platform-specific values, such as
hidden and system, are no longer supported.
If
action = "listDir", a mode column is returned. The column contains an octal string
representation of UNIX permissions; for example, "
777."
The
cfftp.returnValue variable provides the return value for these actions:
getCurrentDir
getCurrentURL
existsDir
existsFile
exists
For more information, see ColdFusion MX Developer’s Guide.
Caution: Object (file and directory) names are case-sensitive.
Action (cfftp.ReturnValue variable)
The results of an action determine the value of the returnValue variable, as the following table
shows:
To access the
returnValue variable, you must prefix it with either cfftp or the value specified by
the
result attribute, if it is set. The result attribute provides a way for cfftp calls from
multiple pages, possibly at the same time, to avoid overwriting the results of one with another. If
you set the
result attribute to myResult, for example, you would access the returnVariable
variable as
myResult.returnVariable. Otherwise, you would access it as
cfftp.returnVariable.
cfftp action Value of cfftp.returnValue
getCurrentDir String. Current directory.
getCurrentURL String. Current URL.
existsDir yes or no.
existsFile yes or no.
exists yes or no.