User Guide
Chapter 1: ColdFusion Tags 67
• CreateDir
• ListDir
• GetFile
• PutFile
• Rename
• Remove
• GetCurrentDir
• GetCurrentURL
• ExistsDir
• ExistsFile
• Exists
Note: Names of objects (files and directories) are case-sensitive; thus, using
ListDir on "
test.log " will not find a file named "test.LOG. "
When ACTION="ListDir", the Attributes column returns either "Directory" or
"Normal." Other platform-specific values, such as "Hidden" and "System" are no
longer supported.
When ACTION="ListDir", a "Mode" column is returned. This column
contains an octal string representation of UNIX permissions, for example, "777,"
when appropriate.
Note also that there is a CFFTP.ReturnValue variable that provides the return value
for some of these actions. The actions for which this variable returns a value are as
follows:
• GetCurrentDir
• GetCurrentURL
• ExistsDir
• ExistsFile
• Exists
The section CFFTP.ReturnValue Variable explains what is returned in this variable.
USERNAME
Required if the FTP connection is not already cached. If connection caching is
used, the USERNAME attribute is not required. User name to pass in the FTP
operation.
PASSWORD
Required if the FTP connection is not already cached. If connection caching is
used, the PASSWORD attribute is not required. Password to log the user.