{"id":51,"date":"2008-04-26T22:29:55","date_gmt":"2008-04-27T03:29:55","guid":{"rendered":"http:\/\/jaimerios.com\/?p=51"},"modified":"2008-04-26T22:29:55","modified_gmt":"2008-04-27T03:29:55","slug":"recursively-deleting-folders","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=51","title":{"rendered":"Recursively deleting folders"},"content":{"rendered":"<p>While I was looking at my backup log in Retrospect, I saw an error message about a directory had more than 100 folders deep. What?<\/p>\n<p>I took a look and sure enough, Entourage had gone on a folder making frenzy and had created well over 100 folders within each other:<\/p>\n<p style=\"padding-left: 30px;\">My Project.rge\/My Project.rge\/My Project.rge\/My Project.rge\/My Project.rge&#8230;<\/p>\n<p>Well, I fired up terminal.app, typed rm -R and expected my problem folder to go away. But it didn&#8217;t. The folders that Entourage created were actually bundles, so now I had to dig a little deeper:<\/p>\n<p style=\"padding-left: 30px;\">find . -iname &#8220;*.rge&#8221; -exec rm -rdf {} \\;<\/p>\n<p>Basically, this calls the find command recursively on every bundle found with the &#8220;rge&#8221; extention and deletes it.\u00a0So if anyone else out there has the need to recursively delete bundles\/folders on their Mac OS computer, just type in the above command&#8230; with extreme caution \ud83d\ude41\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While I was looking at my backup log in Retrospect, I saw an error message about a directory had more than 100 folders deep. What? I took a look and sure enough, Entourage had gone on a folder making frenzy and had created well over 100 folders within each other: My Project.rge\/My Project.rge\/My Project.rge\/My Project.rge\/My &#8230; <a title=\"Recursively deleting folders\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=51\" aria-label=\"Read more about Recursively deleting folders\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[97,162,188,289,387,437],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-coding","tag-bundle","tag-delete-folder","tag-entourage","tag-mac-os-x","tag-rge","tag-terminal"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}