Skip to content

Files

39 lines (27 loc) · 1.81 KB
·

dbfs_file_paths.md

File metadata and controls

39 lines (27 loc) · 1.81 KB
·
subcategory
Storage

databricks_dbfs_file_paths Data Source

This data source allows to get list of file names from get file content from Databricks File System (DBFS).

-> This data source can only be used with a workspace-level provider!

Example Usage

data "databricks_dbfs_file_paths" "partitions" {
  path      = "dbfs:/user/hive/default.db/table"
  recursive = false
}

Argument Reference

  • path - (Required) Path on DBFS for the file to perform listing
  • recursive - (Required) Either or not recursively list all files

Attribute Reference

This data source exports the following attributes:

  • path_list - returns list of objects with path and file_size attributes in each

Related Resources

The following resources are used in the same context: