FTP Download folder function

The FTP Download folder function in RPA.

Help CentreBuilding Processes

This article describes the RPA FTP functionality to download a folder from a remote server.

For a full list of available functions, please read FTP functions.


Description

The Download folder function downloads an entire directory and its contents from the remote server to a local path. Returns an array of downloaded file paths.


Setting it up

To use the Download folder function, follow these instructions:

{{popups:rpas/add:action=ftp-download-folder}}

Once on a process map:

  1. Navigate to the process where you would like to add the Download folder function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the FTP Download folder option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the FTP connection to use
Remote PathYesText-The path to the directory on the remote server
Local PathYesText-The local path where the folder should be saved
VariableNoTextdownloaded_filesVariable name to store the list of downloaded files

Output variables

VariableTypeDescription
{downloaded_files}ArrayArray of local file paths that were downloaded

Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
Directory not foundThe remote directory does not exist

Tips

  • The local directory is created automatically if it does not exist
  • Downloads all files and subdirectories recursively

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.