dbfs_objects
Operations on a dbfs_objects
resource.
Overview
Name | dbfs_objects |
Type | Resource |
Id | databricks_workspace.filemanagement.dbfs_objects |
Fields
Name | Datatype |
---|---|
file_size | integer |
is_dir | boolean |
modification_time | integer |
path | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
getstatus | SELECT | path, deployment_name | Gets the file information for a file or directory. If the file or directory does not exist, this call throws an exception with |
delete | DELETE | deployment_name | Delete the file or directory (optionally recursively delete all files in the directory). This call throws an exception with |
SELECT
examples
SELECT
file_size,
is_dir,
modification_time,
path
FROM databricks_workspace.filemanagement.dbfs_objects
WHERE path = '{{ path }}' AND
deployment_name = '{{ deployment_name }}';
DELETE
example
Deletes a dbfs_objects
resource.
/*+ delete */
DELETE FROM databricks_workspace.filemanagement.dbfs_objects
WHERE deployment_name = '{{ deployment_name }}';