Skip to content

FsWatchParams

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: CodexBaseModel

Start filesystem watch notifications for an absolute path.

Source code in src/codexed/models/v2_protocol.py
class FsWatchParams(CodexBaseModel):
    """Start filesystem watch notifications for an absolute path."""

    path: AbsolutePathBuf
    """
    Absolute file or directory path to watch.
    """
    watch_id: str
    """
    Connection-scoped watch identifier used for `fs/unwatch` and `fs/changed`.
    """

path instance-attribute

Absolute file or directory path to watch.

watch_id instance-attribute

watch_id: str

Connection-scoped watch identifier used for fs/unwatch and fs/changed.

:fa-brands-github: Show source on GitHub