Use this form of the cfftp tag to perform file and directory operations with cfftp.
<cfftp action = "action" username = "name" password = "password" name = "query_name" server = "server" ASCIIExtensionList = "extensions" transferMode = "mode" failIfExists = "Yes" or "No" directory = "directory name" localFile = "filename" remoteFile = "filename" item = "directory or file" existing = "file or directory name" new = "file or directory name" proxyServer = "proxyserver" passive = "Yes" or "No">
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:
For more information, see Developing ColdFusion MX Applications with CFML.
Caution: Object (file and directory) names are case-sensitive.
The results of an action determine the value of the cfftp.returnValue variable.
| 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. |
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6
Comments are no longer accepted for ColdFusion MX. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt143.htm
Comments
Holger said on Aug 26, 2003 at 6:54 AM :