Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.05 KB

dbfs_file_paths.md

File metadata and controls

27 lines (19 loc) · 1.05 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 Authentication is not configured for provider errors.

This data source allows to get list of file names from 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