Databricks icon

Databricks

Interact with Databricks API

Files → Create Directory

AI-generated

Summary

Create a new directory within a specified Unity Catalog volume in Databricks.

Inputs

  • Volume Path (required) — Full path to the volume in format: catalog.schema.volume
  • Directory Path (required) — Path to the directory to create within the volume, specified without a leading slash (e.g., "folder1" or "folder1/subfolder")

Output shape

A single JSON object indicating success with keys: success (boolean), message (string), volumePath (string), and directoryPath (string).

The operation returns confirmation of directory creation but does not return the directory object itself.

Examples

Example 1: Create a directory named 'data/archive' inside the volume 'main.default.storage'

Set 'Volume Path' to 'main.default.storage' and 'Directory Path' to 'data/archive'.

Links

Discussion