{"id":504,"date":"2014-06-24T09:57:48","date_gmt":"2014-06-24T13:57:48","guid":{"rendered":"http:\/\/www.cfchimp.com\/wordpress\/?p=504"},"modified":"2024-12-05T12:16:40","modified_gmt":"2024-12-05T17:16:40","slug":"clean-up-google-drive-icon-files","status":"publish","type":"post","link":"https:\/\/csimmons.dev\/blog\/2014\/06\/clean-up-google-drive-icon-files\/","title":{"rendered":"Clean Up Google Drive Icon Files"},"content":{"rendered":"<p>I had a Git repo that I was storing on Google Drive (Yes that probably was not a great idea, but it was a lazy way of sharing some pdfs in the repo with a non-technical coworker). The\u00a0Google Drive app on the Mac uses an &#8220;Icon&#8221; file to indicate sync statuses of folders. \u00a0Unfortunately\u00a0this kept screwing up the repo by also putting &#8220;Icon&#8221; files in all the folders in the .git directory. \u00a0Having the repo was more important than it being in Google Drive so I moved the folder out of Google Drive. \u00a0Once the folder was moved the &#8220;Icon&#8221; files remained and the repo was still throwing an error when I tried to code in Adobe Brackets.<\/p>\n<p>Here is how I cleaned up all the Google Drive &#8220;Icon&#8221; files.<\/p>\n<p>WARNING: BE SURE YOU DON&#8217;T HAVE FILES NAMED WITH &#8220;Icon&#8221; AS THE FIRST 4 LETTERS OR THIS WILL DELETE THEM.<\/p>\n<ol>\n<li>Open terminal<\/li>\n<li>Change directories into the folder that was once in Google Drive<\/li>\n<li>Issue the following terminal command:\n<pre class=\"prettyprint\">find . -name 'Icon*' -type f -delete<\/pre>\n<\/li>\n<\/ol>\n<p>Now the repo is back to normal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a Git repo that I was storing on Google Drive (Yes that probably was not a great idea, but it was a lazy way of sharing some pdfs in the repo with a non-technical coworker). The\u00a0Google Drive app on the Mac uses an &#8220;Icon&#8221; file to indicate sync statuses of folders. \u00a0Unfortunately\u00a0this kept &#8230; <a title=\"Clean Up Google Drive Icon Files\" class=\"read-more\" href=\"https:\/\/csimmons.dev\/blog\/2014\/06\/clean-up-google-drive-icon-files\/\" aria-label=\"Read more about Clean Up Google Drive Icon Files\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_cloudinary_featured_overwrite":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[68],"tags":[12],"class_list":["post-504","post","type-post","status-publish","format-standard","hentry","category-developer","tag-developer"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pbVg43-88","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/comments?post=504"}],"version-history":[{"count":0,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/posts\/504\/revisions"}],"wp:attachment":[{"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/media?parent=504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/categories?post=504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/csimmons.dev\/blog\/wp-json\/wp\/v2\/tags?post=504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}