FTP File Exists

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 16: Line 16:
  
  
In the example above, the ftp file exists function has been placed inside the [[set variable]] command. The [[set variable]] is then placed inside the [[Connect to FTP Server]] command.
+
In the example above, the ftp file exists function has been placed inside the [[set]] command. The [[set]] is then placed inside the [[Connect to FTP Server]] command.

Revision as of 15:53, 31 July 2013

This is an FTP Function

This function will check if a file exists on the connected FTP server.

It will return "true" if the file exists and return "false" if it does not.

The FTP File 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(#file exists, $plugin function("FTPCommands.dll", "$ftp file exists", "myfile.txt"), "Global")
}


In the example above, the ftp file exists function has been placed inside the set command. The set is then placed inside the Connect to FTP Server command.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox