'Why can't I create a new file in my working directory?
I am using PHPStorm 10.0.3 on Windows 7, and I have had no problems working in my project so far. But for some reason, I come into work this morning and suddenly I'm not able to create a new file in any of my directories in my project? This is the error that's occurring:
The error appears 2 more times after I click OK.
I am still able to go into Windows Explorer and create the file manually, so that will tide me over until this problem is resolved.
Thank you all in advance for helping me with such a silly problem.
UPDATE:
It seems PHPStorm thinks the project is "read-only" because when I try and create a new file in the root of the project, I get the error "Cannot modify a read-only directory" followed by the path. I tried using the attrib windows command to remove all read-only attributes but it still hasn't worked.
Solution 1:[1]
On Windows check if the working directory you are trying to save your code to is added to Ransomware protection. That might be what blocks your IDE from saving files in that specific directory.
You find Ransomware protection by searching for Windows Security. In Windows Security choose Virus & Threat Protection then choose Manage Ransomware Protection and click on Protected folders. If the folder is present try removing it from the list of protected folders.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Peter Szalay |

