Skip to content

FsGetMetadataResponse

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  2422172679["v2_protocol.FsGetMetadataResponse"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 2422172679
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

Metadata returned by fs/getMetadata.

Source code in src/codexed/models/v2_protocol.py
class FsGetMetadataResponse(CodexBaseModel):
    """Metadata returned by `fs/getMetadata`."""

    created_at_ms: int
    """
    File creation time in Unix milliseconds when available, otherwise `0`.
    """
    is_directory: bool
    """
    Whether the path resolves to a directory.
    """
    is_file: bool
    """
    Whether the path resolves to a regular file.
    """
    is_symlink: bool
    """
    Whether the path itself is a symbolic link.
    """
    modified_at_ms: int
    """
    File modification time in Unix milliseconds when available, otherwise `0`.
    """

created_at_ms instance-attribute

created_at_ms: int

File creation time in Unix milliseconds when available, otherwise 0.

is_directory instance-attribute

is_directory: bool

Whether the path resolves to a directory.

is_file instance-attribute

is_file: bool

Whether the path resolves to a regular file.

is_symlink: bool

Whether the path itself is a symbolic link.

modified_at_ms instance-attribute

modified_at_ms: int

File modification time in Unix milliseconds when available, otherwise 0.

:fa-brands-github: Show source on GitHub