<p dir="auto">I'm using Atom 0.196.0  on Windows,<br>
when deleting a folder and this folder is open at atom folder explorer (enpanded on left bar)<br>
EPERM is thrown.</p>
<p dir="auto">Expected Behavior:</p>
<ol dir="auto">
<li>Atom shouldn't lock the folder,allowing to delete it from another running program</li>
<li>After the folder is deleted, atom must reload the file explorer and do not list that folder nor it's files</li>
</ol>
<p dir="auto">Instead of vaguely explaining, here are the steps for reproducing the bug:</p>
<ol dir="auto">
<li>If you have a Yeoman-created project folder i.e. <code class="notranslate">generator-webapp</code> created project, run <code class="notranslate">grunt serve</code>. It'll create a .tmp file, and I'll assume you haven't had one at first.</li>
<li>When everything goes well expand the folder .tmp in Atom so you can see the subfolders inside.</li>
<li>Stop the grunt process.</li>
<li>Run <code class="notranslate">grunt serve</code> again, and it will run <code class="notranslate">grunt-contrib-clean</code> to delete .tmp.</li>
</ol>
<p dir="auto">It won't. .tmp will still exist as a "corrupted file" and you can't delete it by the Windows Explorer. Command line will show <code class="notranslate">Warning: Unable to create directory [path to .tmp folder]" (Error code: EPERM). Use --force to continue.</code> when trying to create a new .tmp folder.</p>
<p dir="auto">Go to Atom and try to delete it, and the Dev Tools will show the same error: <code class="notranslate">Uncaught Error: EPERM, operation not permitted: [path to .tmp folder]</code>. All you need to do is close the folder again on the sidebar to remove the folder. I also tried the same method to Sublime Text, and it doesn't do the same, so I assume there's a clash between <code class="notranslate">grunt-contrib-clean</code> and Atom's way of handling files.</p>
<p dir="auto">Atom is 0.123.0, and Windows is 8.1. Command line running Grunt is running as Administrator.</p>