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

Re: svn: Can't remove 'db/transactions/1-1.txn': Directory not empty

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-06-21 15:21:41 CEST

On 6/21/06, Artem Egorkine <arteme@gmail.com> wrote:
> More on the issue:
>
> Current solution for MacOS features a rewinddir() after removing each
> item in the directory. Isn't that a bit of an overkill? I propose a
> different approach:
>
> 1. do readdir(),
> 2. if there's nothing to delete, we're done
> 2. remove everything in the directory
> 3. do rewinddir()
> 4. goto 1.
>
> This approach features much less calls to rewinddir() while still
> making sure everything is deleted.
>
> It can also be used on every OS, not just MacOS to be on the safe side.

Are you actually sure that the problem is the same? It seems kind of
unlikely that two different operating systems have the exact same bug
that can be worked around in exactly the same way...

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 21 15:23:04 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.