# List FTP Folder

This activity lists all the directories in the FTP server.

### FTP Connection

* **FTP Session Id:**[`IFtpSession Variable`](/getting-started/rpa-studio/variables.md#iftpsession)![](/files/-MVREnwPf_D3-qJvjjYd)\
  Specifies the variable containing the previously opened FTP Connection you wish to close. You must have previously specified this variable in an Open FTP Connection action.\\

### Input

* **Remote Path:** [`String Argument`](/getting-started/rpa-studio/arguments.md#string)![](/files/-MVREnwPf_D3-qJvjjYd)\
  Specifies the path on the FTP server whose directories are to be listed.\\

### Output

* **Result**:[`FtpObjectInfo Variable`](/getting-started/rpa-studio/variables.md#ftpobjectinfo)\
  Stores the list of all the directories contained in the FTP server in the specified [FtpObjectInfo ](/getting-started/rpa-studio/variables.md#ftpobjectinfo)variable.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.visualyze.ai/rpa-studio/network/ftp/list-ftp-folder.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
