Files
bun.sh/test/js
Claude Bot 6bcbf0488e feat(fs): implement mkdtempDisposable and mkdtempDisposableSync
Implements Node.js-compatible disposable temporary directory functions:
- fs.mkdtempDisposableSync() - synchronous version with Symbol.dispose
- fs.mkdtempDisposable() - callback version with Symbol.asyncDispose
- fs/promises.mkdtempDisposable() - promise version with Symbol.asyncDispose

These functions create temporary directories that can be automatically
cleaned up using JavaScript's disposable syntax (using/await using).

The returned objects include:
- path: string - the created directory path
- remove: (async) function - manual cleanup method
- Symbol.dispose/Symbol.asyncDispose - automatic disposal

Matches Node.js implementation from nodejs/node#58516.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-23 03:18:18 +00:00
..
2024-12-12 02:07:29 -08:00
2025-08-22 03:41:49 -07:00