# DirectoryEntry

- [JSON representation](https://docs.cloud.google.com/dataform/reference/rest/v1beta1/DirectoryEntry#SCHEMA_REPRESENTATION)
- [FilesystemEntryMetadata](https://docs.cloud.google.com/dataform/reference/rest/v1beta1/DirectoryEntry#FilesystemEntryMetadata)
  - [JSON representation](https://docs.cloud.google.com/dataform/reference/rest/v1beta1/DirectoryEntry#FilesystemEntryMetadata.SCHEMA_REPRESENTATION)

Represents a single entry in a directory.

| JSON representation |
|---|
| ``` { "metadata": { object (`https://docs.cloud.google.com/dataform/reference/rest/v1beta1/DirectoryEntry#FilesystemEntryMetadata`) }, // Union field `entry` can be only one of the following: "file": string, "directory": string // End of list of possible types for union field `entry`. } ``` |

| Fields ||
|---|---|
| `metadata` | ``object (`https://docs.cloud.google.com/dataform/reference/rest/v1beta1/DirectoryEntry#FilesystemEntryMetadata`)`` Entry with metadata. |
| Union field `entry`. The entry's contents. `entry` can be only one of the following: ||
| `file` | `string` A file in the directory. The path is returned including the full folder structure from the root. |
| `directory` | `string` A child directory in the directory. The path is returned including the full folder structure from the root. |

## FilesystemEntryMetadata

Represents metadata for a single entry in a filesystem.

| JSON representation |
|---|
| ``` { "sizeBytes": string, "updateTime": string } ``` |

| Fields ||
|---|---|
| `sizeBytes` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. Provides the size of the entry in bytes. For directories, this will be 0. |
| `updateTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Output only. Represents the time of the last modification of the entry. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |