Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Workspace address (URL)StringNoWorkspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com.
Remote pathStringYesFile to download, e.g. /Volumes/catalog/schema/volume/file.csv or dbfs:/FileStore/file.csv.
Save asFileYesWhere to save it on this machine. Missing folders are created.
Access tokenCredentialNoDatabricks 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.
OverwriteBooleanNotrueReplace a file already at save_as; when off, the action stops instead and nothing is downloaded. Off for new steps (G6).
Client IDStringNoApplication (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6).
Client secretCredentialNoThe service principal's OAuth secret from the vault (G6).

Outputs​

OutputTypeWhat it is
pathFileFull path of the saved file.
sizeNumberFile size in bytes.