File Utilities#
This module provides utilities to download, upload, and delete files and directories from Databricks volumes.
The file operations are performed in the following stages:
Initialization: - Instantiate
WorkspaceClient
and prepare paths.Operation: - For download/upload/delete, handle single items or recurse through directories.
Completion: - Print progress messages and finalize the operation.
Note
Environment variables
DATABRICKS_TOKEN
andDATABRICKS_HOST
must be set.
Important
Deletes are irreversible; use with caution.
Functions#
Download content from a Databricks volume to a local directory. |
|
Upload a local file or directory to a Databricks volume. |
|
Delete a file or directory from a Databricks volume. |
Standalone Execution#
This module is not intended to be executed as a standalone script.