File
A resource of the Files provider, version 0.2.0, in its Files group. Import it with:
import File from "files/files"Example
resource File example {
path = "example-value"
content = "example-value"
permissions = "example-value"
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
path | string | — | No | |
content | string | — | No | |
permissions | string | — | No |
Set by Files after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
checksum | string | No | |
lastModified | string | No |