FTP File size function

The FTP File size function in RPA.

Help CentreBuilding Processes

This article describes the RPA FTP functionality to get the size of a file on a remote server.

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


Description

The File size function returns the size in bytes of a file on the remote server.


Setting it up

To use the File size function, follow these instructions:

{{popups:rpas/add:action=ftp-file-size}}

Once on a process map:

  1. Navigate to the process where you would like to add the File size 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 File size option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the FTP connection to use
PathYesText-The path to the file on the remote server
VariableNoTextfile_sizeVariable name to store the file size

Output variables

VariableTypeDescription
{file_size}IntegerThe file size in bytes

Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
File not foundThe remote file does not exist

Tips

  • Returns the size in bytes – divide by 1024 for KB, by 1048576 for MB
  • Use to check file sizes before downloading large files

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.