Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions apps/web/src/app/(docs)/docs/filesystem/watch/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

You can watch a directory for changes using the `files.watchDir()` method in JavaScript and `files.watch_dir()` method in Python.

<Note>
Since events are tracked asynchronously, their delivery may be delayed.
It's recommended not to collect or close watcher immediately after making a change.
</Note>

<CodeGroup>
```js
import { Sandbox, FilesystemEventType } from '@e2b/code-interpreter'
Expand Down