# Get Folder Contents to DataTable

Lists the items in the FTP folder as a `DataTable`.

`DataTable` columns: ‘Name’, ‘Path’, ‘Type’, 'CreatedDate', 'ModifiedDate', 'Size'. The 'Type' value is 'Directory' or the file type.


---

### :arrow_left:**INPUT**

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `ConnectionSettings` | [`PAWFtpConnectionSettings`](/doc/pawftpconnectionsettings-RcEVGpTNAG) | ✅Yes     | FTP connection details |
| `FtpFolderPath` | `String` | ✅Yes     | FTP folder path to list |


---

### :arrow_right:**OUTPUT**

| Parameter | Type | Description |
|-----------|------|-------------|
| `IsGetFolderListToDataTableSuccessful` | `Boolean` | Listing success status |
| `GetFolderListToDataTableMessage` | `String` | Status message or error detail |
| `GetFolderListToDataTableResult` | `DataTable` | DataTable containing the file/folder list |
| `Items`   | `List<StorageItemInfo>` | Combined file/folder list |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |