I've recently found cfftp tag in existing project. Honestly, I'm so far to use this tag and ignored wherever I found here and there. Now, I must need to know how does it work and how useful it for CF developer. Unfortunately, I didn't found enough documentation in Adobe CFML documentation. That's why I need to try to test it by myself by reading Adobe CFML documentation. First of all, we need to open FTP connection when we start using this tag.
Above coding, you will see "action, connection, username, password and server". action = "open" it helps us to open FTP connection. connection = "ur_ftp_connection_name" it's just name username / password = your ftp server's authentication server = "ftp.server.com" it's for your server is on Live server "my_FTP" it's for local development just like intranet.
Above coding stands for retrieving folders and files of FTP root. action = "listdir" it helps us to retrieve folders and files from this ftp root. connection = "[ur_ftp_connection_name]" the name when you open FTP connection. name = "[output_ftp_data]" The name of your FTP Query. Directory = "[directory_name]" The directory folder which you want to display. After using FTP, we need to close our existing FTP connection like that.
action = "[close]" Close our ftp connection. connection = "[ur_ftp_connection_name]" the name of FTP which you open.