Skip to contents

Moves a file from one location to another location within DBFS. If the source file does not exist, this call throws an exception with RESOURCE_DOES_NOT_EXIST. If a file already exists in the destination path, this call throws an exception with RESOURCE_ALREADY_EXISTS. If the given source path is a directory, this call always recursively moves all files.

Usage

move_dbfs(client, source_path, destination_path)

dbfsMove(client, source_path, destination_path)

Arguments

client

Required. Instance of DatabricksClient()

source_path

Required. The source path of the file or directory.

destination_path

Required. The destination path of the file or directory.