Skip to main content

Determine-Whether-Remote-File-Exists

Command Description

Determine whether the specified file exists in FTP server

Command Prototype

isRemoteFileExists = FTP.RemoteFileExists(objFTP,sRemotefile)

Parameter Description

ParameterRequiredTypeDefaultDescription
objFTPTrueexpressionobjFTPRefers to the FTP connection object returned by the "connect to FTP server" command
sRemotefileTruestring""Specified file path in FTP remote directory

return

isRemoteFileExists,The variable used to save the output of the command.

Demo