Skip to main content

directories

Operations on a directories resource.

Overview

Namedirectories
TypeResource
Iddatabricks_workspace.filemanagement.directories

SELECT not supported for this resource, see the methods section for supported operations.

Methods

NameAccessible byRequired ParamsDescription
createdirectoryINSERTdirectory_path, deployment_nameCreates an empty directory. If necessary, also creates any parent directories of the new, empty directory (like the shell command
deletedirectoryDELETEdirectory_path, deployment_nameDeletes an empty directory.

INSERT example

Use the following StackQL query and manifest file to create a new directories resource.

/*+ create */
INSERT INTO databricks_workspace.filemanagement.directories (
directory_path,
deployment_name
)
SELECT
'{{ directory_path }}',
'{{ deployment_name }}'
;

DELETE example

Deletes a directories resource.

/*+ delete */
DELETE FROM databricks_workspace.filemanagement.directories
WHERE directory_path = '{{ directory_path }}' AND
deployment_name = '{{ deployment_name }}';