(dirPath, options)
| 412 | }, |
| 413 | |
| 414 | async mkdir(dirPath, options) { |
| 415 | try { |
| 416 | await mkdirPromise(dirPath, { recursive: true, ...options }) |
| 417 | } catch (e) { |
| 418 | // Bun/Windows: recursive:true throws EEXIST on directories with the |
| 419 | // FILE_ATTRIBUTE_READONLY bit set (Group Policy, OneDrive, desktop.ini). |
| 420 | // Bun's directoryExistsAt misclassifies DIRECTORY+READONLY as not-a-dir |
| 421 | // (bun-internal src/sys.zig existsAtType). The dir exists; ignore. |
| 422 | // https://github.com/anthropics/claude-code/issues/30924 |
| 423 | if (getErrnoCode(e) !== 'EEXIST') throw e |
| 424 | } |
| 425 | }, |
| 426 | |
| 427 | async readFile(fsPath, options) { |
| 428 | return readFilePromise(fsPath, { encoding: options.encoding }) |
no test coverage detected