On Mon, Nov 14, 2011 at 12:17 PM, David Bovill <[email protected]>wrote:
> *Empty Folders* > When switching between branches, files are removed but empty folders are > left hanging around. Empty folders also do not show up with "fossil > extras". I'm looking to switch between branches, and not have separate > checkouts, but need to avoid these empty folders. What's the syntax / best > way to do this? I could I guess script something to delete all the files > before checking out a branch, but this seems ugly? > Fossil doesn't track directories. If you want to get rid of empty ones, one way to do this in Unix is: find . -type d | xargs rmdir Notes: a) rmdir will refuse to delete non-empty dirs, so the above will likely spit out harmless warnings for non-emtpy dirs. b) spaces and whatnot in the names will break the above (how best/easiest to fix it depends partly on whether you're using GNU find or not). -- ----- stephan beal http://wanderinghorse.net/home/stephan/
_______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

