dbfs_put | R Documentation |
Upload a file through the use of multipart form post. It is mainly used for streaming uploads, but can also be used as a convenient single call for data upload.
dbfs_put( local_file, destination_path, overwrite = "false", workspace, token = NULL, verbose = T, ... )
local_file |
Path to the file for upload |
destination_path |
A string representing the destination path in DBFS |
overwrite |
Boolean ('true', 'false') that specifies whether to overwrite existing files. Defaults to 'false' |
workspace |
A string representing the web workspace of your Databricks instance. E.g., "https://eastus2.azuredatabricks.net" or "https://demo.cloud.databricks.com". |
token |
A valid authentication token generated via User Settings in Databricks or via the Databricks REST API 2.0. If none is provided, netrc will be used |
verbose |
If TRUE, will print the API response to the console. Defaults to FALSE. |
... |
Additional options to be passed |
The API endpoint for putting files on DBFS is '2.0/dbfs/put'. For all details on API calls please see the official documentation at https://docs.databricks.com/dev-tools/api/latest/.
The API response
# No need to include /dbfs/ file <- "my_model.rds" destination_path <- "/models/my_model.rds" dbfs_put(file = file, destination_path = destination_path, workspace = workspace)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.