read
Options
Repository name.
Organization override.
Change ID to read from. Defaults to the current change at the repository’s default bookmark tip.
Repository-relative path. Omit for the repository root.
Directory traversal depth.
0 returns directory metadata only, 1 returns direct children, and the server maximum is 10.Response
The method returns one generated model variant. The generatedtype_ field
remains available, and type is exposed as a read-only alias.
Returns
True when the response is a regular file.Returns
True when the response is a directory.Returns
True when the response is a symlink.Regular file content.
Symbolic link content.
Directory listing.
ContentFile
Content variant discriminator.
Base name of the file.
Repository-relative path.
Git object SHA.
Whether this path is conflicted when known.
Size in bytes.
Encoding used for
content.Base64-encoded file bytes.
POSIX file mode.
Extended attributes for this path. Values are base64-encoded.
ContentSymlink
Content variant discriminator.
Base name of the symlink.
Repository-relative path.
Git object SHA.
Whether this path is conflicted when known.
Size in bytes.
Encoding used for
content.Base64-encoded symlink target bytes.
POSIX symlink mode.
Extended attributes for this path. Values are base64-encoded.
ContentDirectory
Content variant discriminator.
Base name of the directory.
Repository-relative path.
Git object SHA.
Number of direct children in this directory.
Directory entries returned for the requested depth.
Extended attributes attached to this directory. Values are base64-encoded.
ContentDirectoryEntry
Entry variant discriminator.
Base name of the entry.
Repository-relative path.
Git object SHA.
Size in bytes for file and symlink entries.
POSIX mode for file and symlink entries.

