# FTP List Files

> Kalipso Studio 6.1 documentation · https://doc.sysdevmobile.com/kalipso/6.1/documentation/actions/group-communications/ftp-list-files
>
> Lists files or directories on the FTP server matching a search pattern, in the current directory or sub-directories, with the item count.

Gets a list of files in a FTP Server.

Action available for the following operating systems:

![OS Supported: Android, iOS, Win, Win32](https://doc.sysdevmobile.com/kalipso/assets/images/01_Supported_OS-5c02a51fd5080a410a07ee3ef72b6872.png)

### Parameters

* **Search String** _\<string> -_ A pattern string that user wants to search in the FTP Server (Example "\*.bmp" - search all files in bmp format).
* **Mode** _\<unquoted string> -_ Defines the depth of search that the user wants to perform, for example, if user wants to search only on the current directory, or in all directories and so on. The possible values for this parameter are:
  * _List file of sub-directories_
  * _List files of current directory only_
  * _List Directories and sub-Directories_
  * _List Directories of current directory_
  * _dynamic_
* **Files List** _\<unquoted string> -_ The control or variable that saves the result of this action. The returned value will be a list of the found files.
* **Target** <_unquoted string_> - The control or variable that saves the number of files found in that search action.
* **Items Separator** <_string_> - The characters to define how the items separation is done (Example ""). This parameter is Coded.

:::info
**Search String** is a search pattern inside the current directory. Specifying sub-directories in the **Search String** will have unknown results. For searching in a specific directory, first change the current directory using **FTPSetCurrentDir()**
:::
