terraform-provider-file/docs/data-sources/local_directory.md

45 lines
1.3 KiB
Markdown

---
# generated by https://github.com/hashicorp/terraform-plugin-docs
page_title: "file_local_directory Data Source - file"
subcategory: ""
description: |-
LocalDirectory File DataSource
---
# file_local_directory (Data Source)
LocalDirectory File DataSource
## Example Usage
```terraform
# tflint-ignore: terraform_unused_declarations
data "file_local_directory" "basic_example" {
path = "example_directory"
}
```
<!-- schema generated by tfplugindocs -->
## Schema
### Required
- `path` (String) Path to directory.
### Read-Only
- `files` (Attributes List) List of information about files in the directory. (see [below for nested schema](#nestedatt--files))
- `id` (String) Identifier derived from sha256 hash of path.
- `permissions` (String) Permissions of the directory.
<a id="nestedatt--files"></a>
### Nested Schema for `files`
Read-Only:
- `is_directory` (String) A string representation of whether or not the item is a directory or a file. This will be 'true' if the item is a directory, or 'false' if it isn't.
- `last_modified` (String) The UTC date of the last time the file was updated.
- `name` (String) The file's name.
- `permissions` (String) The file's permissions mode expressed in string format, eg. '0600'.
- `size` (String) The file's size in bytes.