FTP Folder Exists
From UBot Studio
(Difference between revisions)
(Created page with "This is an FTP Function This function will check if a folder exists on the connected FTP server. It will return "true" if the folder exists and return "fal...") |
Revision as of 16:31, 31 July 2013
This is an FTP Function
This function will check if a folder exists on the connected FTP server.
It will return "true" if the folder exists and return "false" if it does not.
The FTP Folder Exists function can be used in any command in UBot Studio, as along as the command is in the Connect to FTP Server command.
plugin command("FTPCommands.dll", "connect to ftp server", "FTP", "ftp.mysite.org", 21, "myusername", "p4ssw0rd", " /var/www/mysite.com/files") { set(#folder exists, $plugin function("FTPCommands.dll", "$ftp folder exists", "myfolder"), "Global") }
In the example above, the ftp folder exists function has been placed inside the Set command. The Set is then placed inside the Connect to FTP Server command.