<p>As reported by Albrecht, deleting a directory on a cifs mounted drive is problematic because the directory is left open after deleting.</p>
<p>See: <a href="http://forum.world.st/Why-DirectoryIsNotEmpty-on-FileReference-gt-gt-deleteAll-td5094589.html" rel="nofollow">http://forum.world.st/Why-DirectoryIsNotEmpty-on-FileReference-gt-gt-deleteAll-td5094589.html</a></p>
<p>The problem can be reproduced with:</p>
<div class="highlight highlight-source-smalltalk"><pre>| <span class="pl-c1">root</span> <span class="pl-c1">deleteMeFolder</span> |

root <span class="pl-k">:=</span> <span class="pl-s"><span class="pl-pds">'</span>/path/to/cifs<span class="pl-pds">'</span></span> asFileReference.
deleteMeFolder <span class="pl-k">:=</span> root <span class="pl-k">/</span> <span class="pl-s"><span class="pl-pds">'</span>delme<span class="pl-pds">'</span></span>.
deleteMeFolder ensureCreateDirectory.
deleteMeFolder delete.</pre></div>
<p>Then execute:</p>
<pre><code>$ sudo lsof | grep delme
</code></pre>
<p>and you'll see the deleted entries.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/368">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AhLyW7GSTFKm3aXitj8DoeSnZW-dgwFZks5vJdoogaJpZM4afuK5">mute the thread</a>.<img src="https://github.com/notifications/beacon/AhLyWwUm8IH9lMA_4ddqK2EasJUCBW0jks5vJdoogaJpZM4afuK5.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/OpenSmalltalk/opensmalltalk-vm","title":"OpenSmalltalk/opensmalltalk-vm","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"FilePlugin\u003e\u003eprimitiveDirectoryDelete leaves the directory open after deleting (#368)"}],"action":{"name":"View Issue","url":"https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/368"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/368",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/issues/368",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>