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

Re: remove "empty" directories

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-03-07 05:00:34 CET

On Mar 6, 2007, at 08:22, christian unger wrote:

> I would llike to remove a bunch of empty dirs from a WorkingCopy,
>
> I could use
> find . -empty delete
> If there weren't these .svn directories which make the dirs non-empty.
>
> any good ideas anyone?

If they contain .svn directories, then Subversion knows about them,
and simply deleting them will make Subversion unhappy. So instead you
should probably "svn rm" them.

I guess the problem is you're trying to automatically identify these
"empty" directories, except that tools looking for empty directories
will see the .svn directories and think they are not empty?

I think it's probably time to write a little script to find and
eradicate these directories. Not sure if there's a way to coerce
"find" to handle it for you.

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 7 05:01:19 2007

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

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