dbfs_directories
Creates, updates, deletes, gets or lists a dbfs_directories
resource.
Overview
Name | dbfs_directories |
Type | Resource |
Id | databricks_workspace.filemanagement.dbfs_directories |
Fields
The following fields are returned by SELECT
queries:
- list
Request completed successfully.
Name | Datatype | Description |
---|---|---|
file_size | integer | |
is_dir | boolean | |
modification_time | integer | |
path | string |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | deployment_name | List the contents of a directory, or details of the file. If the file or directory does not exist, this call throws an exception with | |
mkdirs | insert | deployment_name | Creates the given directory and necessary parent directories if they do not exist. If a file (not a directory) exists at any prefix of the input path, this call throws an exception with |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
deployment_name | string | The Databricks Workspace Deployment Name (default: dbc-abcd0123-a1bc) |
SELECT
examples
- list
List the contents of a directory, or details of the file. If the file or directory does not exist, this call throws an exception with
SELECT
file_size,
is_dir,
modification_time,
path
FROM databricks_workspace.filemanagement.dbfs_directories
WHERE deployment_name = '{{ deployment_name }}' -- required;
INSERT
examples
- mkdirs
- Manifest
Creates the given directory and necessary parent directories if they do not exist. If a file (not a directory) exists at any prefix of the input path, this call throws an exception with
INSERT INTO databricks_workspace.filemanagement.dbfs_directories (
data__path,
deployment_name
)
SELECT
'{{ path }}',
'{{ deployment_name }}'
;
# Description fields are for documentation purposes
- name: dbfs_directories
props:
- name: deployment_name
value: string
description: Required parameter for the dbfs_directories resource.
- name: path
value: required