{"id":1973,"date":"2022-10-21T17:34:06","date_gmt":"2022-10-21T16:34:06","guid":{"rendered":"https:\/\/desairem.com\/wordpress\/?p=1973"},"modified":"2025-09-11T17:13:33","modified_gmt":"2025-09-11T16:13:33","slug":"synctime-why-do-i-get-error-while-copying-x-to-y-file-exists","status":"publish","type":"post","link":"https:\/\/desairem.com\/wordpress\/synctime-why-do-i-get-error-while-copying-x-to-y-file-exists\/","title":{"rendered":"Why do I get &#8220;Error while copying X to Y. File exists&#8221;?"},"content":{"rendered":"\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Case_sensitivity\">Case sensitivity<\/a> is a property of volumes. On <strong>case-sensitive<\/strong> volumes, it is allowed for two filenames to differ only in the case of a letter, whereas on <strong>case-insensitive<\/strong> volumes, it is not allowed. For example, on case-sensitive volumes there could be two files named <code>file.txt<\/code> and <code>File.txt<\/code>, whereas on case insensitive volumes only one of the two can exist. By default, macOS is installed on a case-insensitive volume.<\/p>\n\n\n\n<p>If you keep the case of filenames consistent between source and destination and don&#8217;t use filenames that differ only in the case of some letters, then you won&#8217;t even notice if the volumes are case-sensitive or insensitive. Otherwise, when syncing to a destination on a case-insensitive volume, you might see the message &#8220;Error while copying X to Y. File exists&#8221;, which can be caused by one of the following reasons.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A source file and a destination file with similar names, differing only in the case of some letters. The best solution is to enable the option <em>Remove files not on source<\/em>, which fill remove destination files that don&#8217;t exist on the source with the exact same name, so that the source file with the similar name can then be copied. After the sync, the option <em>Remove files not on source<\/em> can be disabled again.<\/li>\n\n\n\n<li>Multiple source files with similar names, differing only in the case of some letters. Since these files cannot coexist on the case-insensitive destination volume, the best solution is to use different names.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Case sensitivity is a property of volumes. On case-sensitive volumes, it is allowed for two filenames to differ only in the case of a letter, whereas on case-insensitive volumes, it is not allowed. For example, on case-sensitive volumes there could be two files named file.txt and File.txt, whereas on case insensitive volumes only one of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"wp-custom-template-sync-time-help-post","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-1973","post","type-post","status-publish","format-standard","hentry","category-synctime-help"],"_links":{"self":[{"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/posts\/1973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1973"}],"version-history":[{"count":10,"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/posts\/1973\/revisions"}],"predecessor-version":[{"id":5071,"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/posts\/1973\/revisions\/5071"}],"wp:attachment":[{"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/desairem.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}