mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 21:01:52 +00:00
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>