Files
bun.sh/docs
Braden Wong 29028bbabe docs(watch): rename filename to relativePath in recursive example (#23990)
When using `fs.watch()` with `recursive: true`, the callback receives a
relative path from the watched directory (e.g., `'subdir/file.txt'`),
not just a filename.

Renaming the parameter from `filename` to `relativePath` makes this
behavior immediately clear to developers.

**Before:**
```ts
(event, filename) => {
  console.log(`Detected ${event} in ${filename}`);
}
```

**After:**
```ts
(event, relativePath) => {
  console.log(`Detected ${event} in ${relativePath}`);
}
```

This is a documentation-only change that improves clarity without
altering any functionality.

Co-authored-by: Braden Wong <git@bradenwong.com>
2025-10-23 15:59:35 -07:00
..
2025-10-13 14:46:56 -07:00
2025-07-10 00:10:43 -07:00
2025-10-09 23:37:10 -07:00
2025-10-09 23:28:03 -07:00
2023-09-07 10:09:09 -07:00
2023-02-23 17:13:30 -08:00
2025-07-10 00:10:43 -07:00
2025-09-26 03:06:18 -07:00