{"id":28083,"date":"2020-02-07T15:07:01","date_gmt":"2020-02-07T20:07:01","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=28083"},"modified":"2020-02-14T11:44:07","modified_gmt":"2020-02-14T16:44:07","slug":"icloud-drive-changing-empty-files","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2020\/02\/07\/icloud-drive-changing-empty-files\/","title":{"rendered":"iCloud Drive Changing Empty Files"},"content":{"rendered":"<p><a href=\"https:\/\/twitter.com\/antons\/status\/1225477267322810368\">Anton Sotkov<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/antons\/status\/1225477267322810368\">\n<p>iCloud Drive servers recently started reverting all 0 byte files to the last non-empty version. Not a problem for most apps, but all plain text editors now have a bug where it&rsquo;s impossible to remove all content from a file.<\/p>\n<\/blockquote>\n<p>It looks like this has now been fixed, but it&rsquo;s still scary. Aside from messing up user editable text files (where the problem might be obvious&mdash;or not, depending on when you last used the file), the modified files could have semantic meaning for an app, which then misbehaved or corrupted other data as a result.<\/p>\n\n<p><a href=\"https:\/\/twitter.com\/timohetzel\/status\/1225479585392885762\">Timo Hetzel<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/timohetzel\/status\/1225479585392885762\">\n<p>Most certainly working around some iCloud bug that emptied files by itself.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/yar1vn\/status\/1225572076238622720\">Yariv Nissim<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/yar1vn\/status\/1225572076238622720\">\n<p>I still have zero bytes files that I lost from Catalina beta.\nChecked now and they&rsquo;re still empty. Would love for Apple to restore them because I have no backups of files in iCloud Drive.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/07\/23\/trusting-icloud-drive\/\">Trusting iCloud Drive<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2019\/07\/11\/icloud-data-loss-with-macos-10-15-and-ios-13-betas\/\">iCloud Data Loss With macOS 10.15 and iOS 13 Betas<\/a><\/li>\n<\/ul>\n\n<p id=\"icloud-drive-changing-empty-files-update-2020-02-14\">Update (2020-02-14): <a href=\"https:\/\/twitter.com\/w1nmaciek\/status\/1226156249080881152\">Maciej<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/w1nmaciek\/status\/1226156249080881152\">\n<p>This is what one of 13.3.1 betas did to my iCloud main directory. Correct folders were properly displayed below that. Nothing seems to have been lost though.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Anton Sotkov: iCloud Drive servers recently started reverting all 0 byte files to the last non-empty version. Not a problem for most apps, but all plain text editors now have a bug where it&rsquo;s impossible to remove all content from a file. It looks like this has now been fixed, but it&rsquo;s still scary. Aside [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2020-02-07T20:07:05Z","apple_news_api_id":"bc35fe33-6732-440c-b46f-9c9313bfbc0b","apple_news_api_modified_at":"2020-02-14T16:44:10Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAA==","apple_news_api_share_url":"https:\/\/apple.news\/AvDX-M2cyRAy0b5yTE7-8Cw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[131,1016,913,31,1667,30,1666],"class_list":["post-28083","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bug","tag-datacide","tag-icloud-drive","tag-ios","tag-ios-13","tag-mac","tag-macos-10-15"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28083","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=28083"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28083\/revisions"}],"predecessor-version":[{"id":28129,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/28083\/revisions\/28129"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=28083"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=28083"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=28083"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}