http.github.Tree.Item
A single file or directory in a Tree
Fields
| Name | Type | Description |
|---|---|---|
path | string | The path to the file or directory. |
mode | string | The type of item that this is.
| Mode | Meaning | Types |
|:--------|:-----------------------------|:---------|
|100644 | Normal file (non-executable) | Blob
|100755 | Executable file | Blob
|040000 | Directory | Tree
|120000 | Symbolic link | Blob
|160000 | Git submodule (commit ref) | Commit |
type | string | The type of item that this is. One of "blob", "tree", "commit". |
sha | string | The SHA1 of the item. |
size | number | The size of the item in bytes. |
url | string | The URL of the item. |