directory_contents
Operations on a directory_contents
resource.
Overview
Name | directory_contents |
Type | Resource |
Id | databricks_workspace.filemanagement.directory_contents |
Fields
Name | Datatype |
---|---|
name | string |
file_size | integer |
is_directory | boolean |
last_modified | integer |
path | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
listdirectorycontents | SELECT | directory_path, deployment_name | Returns the contents of a directory. If there is no directory at the specified path, the API returns a HTTP 404 error. |
SELECT
examples
SELECT
name,
file_size,
is_directory,
last_modified,
path
FROM databricks_workspace.filemanagement.directory_contents
WHERE directory_path = '{{ directory_path }}' AND
deployment_name = '{{ deployment_name }}';