Skip to main content

Download-Folder

Command Description

Download specified folder from the remote directory of the FTP server to the local and overwrite it directly if there is a same name local file

Command Prototype

folderPath = FTP.DownloadFolder(objFTP,sRemotedir,sLocalpath)

Parameter Description

ParameterRequiredTypeDefaultDescription
objFTPTrueexpressionobjFTPRefers to the FTP connection object returned by the "connect to FTP server" command
sRemotedirTruestring""Specified folder path in FTP remote directory
sLocalpathTruepath'''C:\Users'''Save to local folder. The folder with the same name will be overwritten directly

return

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

Demo