[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Bug? "Cannot remove folder <folder>: The directory is not empty"

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 15 Sep 2009 13:11:56 -0400

On Tue, Sep 15, 2009 at 11:37, Kevin Thompson <antiduh_at_csh.rit.edu> wrote:
> Howdy all,
>
> I've been seeing this problem in TortoiseSVN for a while, and thought I might report it to see if it can be resolved.
>
> I have a fairly sizable repository check out (402 megs, 4,815 files, 2,306 folders).
>
> I move this checkout around quite a bit, sometimes to/from network drives, removable drives, etc.
>
> The problem I've found is that when I'm trying to delete a checkout (note: just deleting the local files, not actually performing any SVN operation), windows will report back "Cannot remove folder <folder>: The directory is not empty". I'm guessing this has something to do with TSVN maintaining the .svn directory.
>
> I've seen this with default installs of TSVN on more than 15 machines, all Windows XP.
>
>
> Reproducing is pretty simple. Checkout a repo that is comparably sized (you probably could get away with a much smaller repo), wait for TSVN to recognize it and cache the icon statuses, then try to delete the whole checkout. You should get windows reporting that it can't delete some folder and it gives up. I have to lather-rinse-repeat about 20 times to finally delete the whole thing.

What antivirus are you running?

If you kill TSVNCache.exe, does it alleviate the problem?

I suspect that some application (the most common offender here is
antivirus) is keeping handles to the files in the .svn directories
open longer than it should.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2395168

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-09-15 19:11:56 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.