Skip to main content

dbfs_objects

Operations on a dbfs_objects resource.

Overview

Namedbfs_objects
TypeResource
Iddatabricks_workspace.filemanagement.dbfs_objects

Fields

NameDatatype
file_sizeinteger
is_dirboolean
modification_timeinteger
pathstring

Methods

NameAccessible byRequired ParamsDescription
getstatusSELECTpath, deployment_nameGets the file information for a file or directory. If the file or directory does not exist, this call throws an exception with
deleteDELETEdeployment_nameDelete 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 }}';