# List FTP Folder

This activity lists all the directories in the FTP server.

### FTP Connection

* **FTP Session Id:**[`IFtpSession Variable`](https://docs.visualyze.ai/getting-started/rpa-studio/variables#iftpsession)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  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`](https://docs.visualyze.ai/getting-started/rpa-studio/arguments#string)![](https://1935494318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M927xRZSEM57y2sBcm3%2Fuploads%2Fgit-blob-20e90e25afa096ee0833e242a7763776d12b4591%2Fimage.png?alt=media)\
  Specifies the path on the FTP server whose directories are to be listed.\\

### Output

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