Skip to main content

Search file names

Search file contents

Replace text

Watch a directory

Directory watch is not a plain REST call: it streams change events over the machine control WebSocket rather than a single request/response endpoint, so there is no curl equivalent. watch_dir calls on_event for file changes and returns a handle with stop(). recursive=True watches nested directories, and timeout= can bound how long the watch stays open. The CLI streams watch events as JSON lines.