Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 2.22 KB

dbfs_file_paths.md

File metadata and controls

39 lines (27 loc) · 2.22 KB
subcategory
Storage

databricks_dbfs_file_paths Data Source

-> Note If you have a fully automated setup with workspaces created by databricks_mws_workspaces or azurerm_databricks_workspace, please make sure to add depends_on attribute in order to prevent default auth: cannot configure default credentials errors.

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

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: