Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 603 Bytes

dbfs_file_paths.md

File metadata and controls

25 lines (18 loc) · 603 Bytes
subcategory
Storage

databricks_dbfs_file_paths Data Source

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