You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by christian unger <ch...@mac.com> on 2007/03/06 14:22:50 UTC

remove "empty" directories

Hi,

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?

cu
christian unger

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: remove "empty" directories

Posted by Ryan Schmidt <su...@ryandesign.com>.
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