Databricks icon

Databricks

Interact with Databricks API

Files → List Directory

AI-generated

Summary

List all files and directories within a specified directory path inside a Unity Catalog volume in Databricks.

Inputs

  • Volume Path (required) — Full path to the volume in the format catalog.schema.volume, specifying the catalog, schema, and volume to access.
  • Directory Path (required) — Relative path to the directory within the volume to list contents of, e.g., "folder1" or "folder1/subfolder". Must not include a leading slash.
  • Additional Fields.Page Size — Optional number to limit how many files are returned per page; defaults to 1000.
  • Additional Fields.Page Token — Optional token to fetch the next page of results if the directory listing is paginated.

Output shape

a single JSON object representing the directory listing response from the Databricks API.

The operation returns a JSON object including files and directories under the specified path. Supports pagination using 'Page Size' and 'Page Token' inputs. The output is paired to the input item index.

Links

Discussion