Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
General Discussions
Switcher Hangout (Windows to Mac)
Copying one folder over another of the same name destroys data!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="KuruMonkey" data-source="post: 113774"><p>rman: you aren't quite right in your assertions.</p><p></p><p>What windows' GUI copy folder with "replace" implements is (in effect)</p><p></p><p>[CODE]cp -rf /source_folder/folder_a /dest_folder/folder_a[/CODE]</p><p></p><p>Which, as you can see, is a "copy" command.</p><p></p><p>OSX implements (in effect):</p><p></p><p>[CODE]rm -dr /destfolder/folder_a</p><p>cp -rf /sourcefolder/folder_a /destfolder/folder_a[/CODE]</p><p></p><p>Notice the extra "delete" command. It does actually do a "if folder /destfolder/folder_a exists" around the delete command, but I don't know enough unix to write that...</p></blockquote><p></p>
[QUOTE="KuruMonkey, post: 113774"] rman: you aren't quite right in your assertions. What windows' GUI copy folder with "replace" implements is (in effect) [CODE]cp -rf /source_folder/folder_a /dest_folder/folder_a[/CODE] Which, as you can see, is a "copy" command. OSX implements (in effect): [CODE]rm -dr /destfolder/folder_a cp -rf /sourcefolder/folder_a /destfolder/folder_a[/CODE] Notice the extra "delete" command. It does actually do a "if folder /destfolder/folder_a exists" around the delete command, but I don't know enough unix to write that... [/QUOTE]
Verification
Name this item. 🍎
Post reply
Forums
General Discussions
Switcher Hangout (Windows to Mac)
Copying one folder over another of the same name destroys data!
Top