FTP directories

Table of contents


Description

To work with directories on the FTP server, use the "FTP Directories" action. With it you can:

  • Download directory from FTP server.

  • Upload the directory to the server.

  • Delete the directory on the server.

  • Rename the directory on the server.

  • Get a list of files.

How to add an action to a project?

Via the context menu Add action → FTP → FTP directories

Or use smart search .

What is it used for?

  • Download the directory with project data files located on the FTP server.

  • Save project data to FTP server.

  • Delete directory with project data files from FTP server.

  • Get a list of the working data files of the project located in a specific directory.

How to work with an action?

In order to start working with this action, you need to configure the FTP connection. How to do this is described in the FTP Settings article.

The action has the following basic settings:

  • Server path - the path to the required directory on the server.

  • Local path - the path on your computer where you want to save the downloaded directory.

  • Path type - A relative or absolute path on the server. With relative - the path will be built relative to the current folder, with absolute - the path is specified from the system root.

  • Process subdirectories - consider subdirectories when working, if they exist in the main directory.

Download a directory from the server

Used to download a directory from the server to your computer.


Upload a directory to the server

Used to download a directory from the server to your computer.


Delete a directory from the server

Used to delete a directory on the server. You must specify the path to the directory.


Rename a directory on the server

Used if you need to rename a directory on the server. You must specify the path to the directory and the new directory name.


Get file list

It is used if you need to get a list of files contained in a specific directory on the server. It is necessary to specify a list in which the file names will be saved. Working with a list is described in the article List . Additional setting “Include directory names” allows to include in the final list of files the names of directories contained in the main directory.


Usage example

Download the folder with files

We check if there are files in the directory on the FTP server, and if it is not empty, then download it for further work.

We get a list of files in the list, check the number of lines in the list, if lines> 0, then download all files from the FTP server and work with them further. If the number of lines is 0, then we display a corresponding notification and exit.