# List a Directory

> List a Directory activity in the Databricks connector.

## Project compatibility

Windows | Cross-platform

## Overview

| Description | API Method | API Path |
| --- | --- | --- |
| List the files and subdirectories under a Databricks Unity Catalog volume path. Each entry carries path, name, is_directory, file_size and last_modified. | GET | `/fs/directories/{catalog}/{schema}/{volume}/{directory_name}` |

## Input

| Parameter | Description | Data Type |
| --- | --- | --- |
| Schema \* | Name of the schema that contains the volume. For example, `default`. | string |
| Catalog \* | Name of the Unity Catalog catalog that contains the volume. For example, `workspace`. | string |
| Volume \* | Name of the Unity Catalog volume. For example, `my_volume`. | string |
| Directory Name \* | Path of the directory inside the volume, relative to the volume root. For example, `reports/2026`. | string |

\* Required parameter.

## Output

| Parameter | Description | Data Type |
| --- | --- | --- |
| ID | Unique identifier of the returned record. | string |
| Entries | Directory entries: [{"path":"...","name":"...","is_directory":false,"file_size":123,"last_modified":0}]. | array |
| Next Page Token | Opaque token for the next page of entries. | string |

:::note
You might see variations in the output depending on where you run the activity. In API workflows and Maestro Flow, a single response object containing all the fields is returned. In RPA workflows, not all fields are exposed, but you can still retrieve them from the exposed response object.
:::
