db_dbfs_move {brickster} | R Documentation |
DBFS Move
Description
Move a file from one location to another location within DBFS.
Usage
db_dbfs_move(
source_path,
destination_path,
host = db_host(),
token = db_token(),
perform_request = TRUE
)
Arguments
source_path |
The source path of the file or directory. The path
should be the absolute DBFS path (for example, |
destination_path |
The destination path of the file or directory. The
path should be the absolute DBFS path (for example,
|
host |
Databricks workspace URL, defaults to calling |
token |
Databricks workspace token, defaults to calling |
perform_request |
If |
Details
If the given source path is a directory, this call always recursively moves all files.
When moving a large number of files, the API call will time out after
approximately 60 seconds, potentially resulting in partially moved data.
Therefore, for operations that move more than 10K files, we strongly
discourage using the DBFS REST API. Instead, we recommend that you perform
such operations in the context of a cluster, using the File system utility
(dbutils.fs
) from a notebook, which provides the same functionality without
timing out.
If the source file does not exist, this call throws an exception with
RESOURCE_DOES_NOT_EXIST.
If there already exists a file in the destination path, this call throws an exception with
RESOURCE_ALREADY_EXISTS.
See Also
Other DBFS API:
db_dbfs_add_block()
,
db_dbfs_close()
,
db_dbfs_create()
,
db_dbfs_delete()
,
db_dbfs_get_status()
,
db_dbfs_list()
,
db_dbfs_mkdirs()
,
db_dbfs_put()
,
db_dbfs_read()