Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse
titleThis page has been translated automatically

We want to provide you with the latest help content in your language as soon as possible. This page has been translated automatically and may contain grammatical errors or inaccuracies. We want this content to be useful to you. Please let us know at the bottom of this page if this information was helpful.

View the original article in Russian: Директории FTP

Описание

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 do I 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.

Load directory from server

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

...

Upload directory to server

Used to upload a file from your computer to the server.

...

Delete directory on server

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

...

Rename the 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.

...