Download file
Save a file from a Unity Catalog volume, the workspace, or DBFS to this machine.
Command in the Databricks toolkit · id ooa.databricks/download_file · 7 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Workspace address (URL) | String | No | Workspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com. | |
| Remote path | String | Yes | File to download, e.g. /Volumes/catalog/schema/volume/file.csv or dbfs:/FileStore/file.csv. | |
| Save as | File | Yes | Where to save it on this machine. Missing folders are created. | |
| Access token | Credential | No | Databricks personal access token or OAuth token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Overwrite | Boolean | No | true | Replace a file already at save_as; when off, the action stops instead and nothing is downloaded. Off for new steps (G6). |
| Client ID | String | No | Application (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6). | |
| Client secret | Credential | No | The service principal's OAuth secret from the vault (G6). |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Full path of the saved file. |
| size | Number | File size in bytes. |