[BUG] Windows - Write tool call incorrectly calls mkdir on Windows drive

Status Open
Reported on v2.1.170
Maintainer reply None cached
Activity 1 comment · opened Jul 25, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Write hello.txt prompt fails on Windows

What Should Happen?

mkdir should not be called on Windows drive directly.

Error Messages/Logs

● Write(hello.txt)
  ⎿  Error: EPERM: operation not permitted, mkdir 'I:\'
  ⎿  Loaded 2 skills from .claude\skills

Steps to Reproduce

  1. Mount a folder to drive I: in Windows 11.
  2. Open Powershell and go to drive root I:
  3. Open Claude Code v2.1.170 with 'CLAUDE_CODE_PERFORCE_MODE' to '1'
  4. Ensure environment is
Primary working directory: I:\
Platform: Windows 11 Enterprise (10.0.26200)
Shell: Bash (Unix shell syntax)
Git repository: No
Model: Claude Haiku 4.5 (us.anthropic-claude-haiku-4-5-20251001-v1:0)
Knowledge cutoff: February 2025
  1. Enter prompt: Write hello.txt

Claude Model

Other

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.170

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗