Opens a stream to write to a file and returns a handle to this stream. There
is a 10 minute idle timeout on this handle. If a file or directory already
exists on the given path and overwrite is set to false, this call will
throw an exception with RESOURCE_ALREADY_EXISTS
.
Usage
create_dbfs(client, path, overwrite = NULL)
dbfsCreate(client, path, overwrite = NULL)
Arguments
- client
Required. Instance of DatabricksClient()
- path
Required. The path of the new file.
- overwrite
The flag that specifies whether to overwrite existing file/files.
Details
A typical workflow for file upload would be:
Issue a create
call and get a handle. 2. Issue one or more
add-block
calls with the handle you have. 3. Issue a close
call with
the handle you have.