Home > Software engineering >  How to fix "Unable to write file" in VS Code?
How to fix "Unable to write file" in VS Code?

Time:01-03

I tried running VS Code as an administrator, restarted my computer, but I'm still getting this error:

Unable to write file 'e:\System Volume Information\test.py' (NoPermissions (FileSystemError): Error EPERM: operation not permitted, stat 'e:\System Volume Information')

screenshot of VS Code with error

CodePudding user response:

You're trying to write to System Volume Information, which is a protected folder created by the operating system.
This means you can't write to or delete it, since windows needs this folder to work.
Try making a file in a different directory.

  • Related