FTP File Exists
From UBot Studio
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 variable command. The set variable is then placed inside the Connect to FTP Server command.