User Guide
174 Chapter 2: ColdFusion Tags
cfftp: Connection: File and directory operations
Description
Use this form of the cfftp tag to perform file and directory operations with cfftp.
Syntax
<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 = "proxy server"
passive = "yes" or "no">
result = "result_name"
See also
cfhttp, cfldap, cfmail, cfpop
Attributes
Attribute Req/Opt Default Description
action Required if
connection is not
cached
FTP operation to perform:
• changedir
• createDir
• listDir
• removeDir
• getFile
• putFile
• rename
• remove
• getCurrentDir
• getCurrentURL
• existsDir
• existsFile
• exists
username Required if
connection is not
cached
User name to pass in the FTP operation.
password Required if
action
= "open"
Password to log in the user.