<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body>I have also seen this problem on Windows.<BR>
>From what I remember, disabling the windows indexing service + any virus checkers + Google desktop search, made it happen less often :)<BR>
<BR>
Also, it was more likely to occur when an explorer, viewing the folders contents, was open.<BR>
And, from what I recall, it was made worse if the folder contained a .thumbs file and so it happened more often on XP than on Win2000.<BR>
<BR>
In the end we solved the problem by using the Shell.dll function - SHFileOperation - with the FO_DELETE , FOF_NOERRORUI, FOF_SILENT, FOF_NOCONFIRMATION flags; to do the folder delete. We also removed any read only, archive, flags from the files in the folder before calling the function).<BR>
<BR>
You could probably use FFI to call the function, or else make a plugin.<BR>
Cheers,<BR>
Andy<BR><BR>.<BR><BR><BR>
<HR id=stopSpelling>
<BR>
> Date: Tue, 28 Aug 2007 19:20:54 +0200<BR>> From: michael@impara.de<BR>> To: squeak-dev@lists.squeakfoundation.org<BR>> Subject: directory recursive delete problem on Windows<BR>> <BR>> Hi all,<BR>> <BR>> Grit just ran into an -interesting to say the least- problem with <BR>> recursive deletion of directories on Windows. We are not able to provide <BR>> a stripped down test case yet, but here some info:<BR>> <BR>> - we extract a zip archive to provide an initial setup for Plopp data<BR>> - then the user can play around in demo mode (problem doesn't occur in a <BR>> full version as the deletion doesn't take place)<BR>> - upon quitting demo mode all data is erased via a recursive directory <BR>> delete<BR>> <BR>> <BR>> We have simple test up without running the UI to reproduce the problem.<BR>> <BR>> The delete fails about 1 in 10 with a primitive failed in deleteDirectory.<BR>> <BR>> There are no open files or anything obvious.<BR>> <BR>> Now the interesting part...<BR>> If we add a delay of 1 sec after catching the error and then simply <BR>> retry the exception to delete the directory again, it works.<BR>> <BR>> [Painter3DStorage storageDirectory recursiveDelete]<BR>> on: Error<BR>> do: [: exception |<BR>> (Delay forMilliseconds: 1000) wait.<BR>> exeption retry]<BR>> <BR>> Any ideas?<BR>> <BR>> Michael<BR>> <BR>> <BR>> <BR><BR><br /><hr />Email straight to your blog, upload jokes, photos and more. <a href='http://specials.uk.msn.com/spaces/default.aspx ' target='_new'>Windows Live Spaces, it's FREE!</a></body>
</html>