Skip to content

FsReadDirectoryEntry

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

A directory entry returned by fs/readDirectory.

Source code in src/codexed/models/v2_protocol.py
class FsReadDirectoryEntry(CodexBaseModel):
    """A directory entry returned by `fs/readDirectory`."""

    file_name: str
    """
    Direct child entry name only, not an absolute or relative path.
    """
    is_directory: bool
    """
    Whether this entry resolves to a directory.
    """
    is_file: bool
    """
    Whether this entry resolves to a regular file.
    """

file_name instance-attribute

file_name: str

Direct child entry name only, not an absolute or relative path.

is_directory instance-attribute

is_directory: bool

Whether this entry resolves to a directory.

is_file instance-attribute

is_file: bool

Whether this entry resolves to a regular file.

:fa-brands-github: Show source on GitHub