Skip to main content

directory_contents

Operations on a directory_contents resource.

Overview

Namedirectory_contents
TypeResource
Iddatabricks_workspace.filemanagement.directory_contents

Fields

NameDatatype
namestring
file_sizeinteger
is_directoryboolean
last_modifiedinteger
pathstring

Methods

NameAccessible byRequired ParamsDescription
listdirectorycontentsSELECTdirectory_path, deployment_nameReturns 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 }}';