SandboxFileSystemWatchEvent

class baseten.sandbox.SandboxFileSystemWatchEvent(*, ops, path)

Bases: object

A change seen by SandboxFileSystem.watch().

Parameters:
  • ops (list[Literal['CREATE', 'WRITE', 'REMOVE', 'RENAME', 'CHMOD'] | str])

  • path (str)

ops: list[Literal['CREATE', 'WRITE', 'REMOVE', 'RENAME', 'CHMOD'] | str]

Kinds of change, more than one when the sandbox reports several together.

path: str

Full path of the changed entry.