# Get Folder Contents

Lists the files and folders in the specified folder. If `FolderPath` is empty or ‘/’, the drive root is listed.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `ConnectionSettings` | `PAWOffice365ConnectionSettings` | ✅Yes     | OneDrive or SharePoint connection settings |
| `FolderPath` | `String` | ❌No      | Folder path; root if empty or ‘/’ |


---

### :arrow_right:**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsOffice365GetFolderListSuccessful` | `Boolean` | Operation success status |
| `Office365GetFolderListMessage` | `String` | Status/error message |
| `Office365GetFolderListFolders` | `List<String>` | Subfolder paths |
| `Office365GetFolderListFiles` | `List<String>` | File paths  |
| `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**". |