[BUG] EEXIST: file already exists, mkdir. Regression in v2.1.69
Status Fixed / completed
Reported on v2.1.68
Maintainer reply None cached
Activity 5 comments · opened Mar 5, 2026 · closed Mar 5, 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?
The Edit tool throws an EEXIST: file already exists, mkdir error when editing files in v2.1.69. This did not occur in previous versions. The affected path is a OneDrive directory. Maybe possible the spaces in the path name are a contributing factor?
What Should Happen?
Claude is able to successfully edit the file.
Error Messages/Logs
EEXIST: file already exists, mkdir
(after looking into Edit Failed)
Steps to Reproduce
To Reproduce
- Install Claude Code v2.1.69
- Ask Claude Code to edit a file on OneDrive
- Observe the error
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.68
Claude Code Version
2.1.69
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
Let me know if you have any questions for me!
5 Comments
Same issue in pycharm. Seems to relate to filepaths with a space in them.
Actually after a little more testing this isn't the case, it just appeared to be at first. Whatever happened seems to have generally broken the ability to write inside OneDrive, it isn't the spaces.
Same issue as 31156
2nd this
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.