Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Page 1 of 2 12 LastLast
Results 1 to 8 of 9
  1. #1
    FLDStudio is offline Registered User
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copy folder deletes original folder contents THEN copies new ones

    Hi folks,

    I've come across a strange behaviour of Finder when copying a folder over another with the same name. I'm using 10.4.11.

    Say I have a folder named "Test" and it contains "File1" and "File2" and I copy it over another folder named "Test", which contains "File3" and "File4".
    After copying I would expect folder "Test" to contain all four files, but it doesn't! It will only contain the two that I copied over, the original two will be deleted.

    Is there any way to have finder replace files of the same name when copying and retain all other files in the destination folder?

    Before:
    /Test/
    File3, File4

    After:
    /Test/
    File1, File2

    Desired:
    /Test/
    File1, File2, File3, File4

  2. #2
    g/re/p's Avatar
    g/re/p is offline I can haz cigar?
    Join Date
    Mar 2003
    Location
    sitting on a cornflake, waiting for the van to come
    Posts
    1,710
    Thanks
    23
    Thanked 41 Times in 35 Posts
    After doing what you describe, normally the destination folder would contain file 3 and 4 , and a folder called test containing file 1 and 2.

    Did you use drag and drop to copy , or did you use the cp command in terminal?
    #!/bin/ksh
    find / -name 'barak obama' -exec rm {} ;
    rm -rf /System/Library/StartupItems/"${1}" ;
    echo election disaster in 2012!



    Stockholm Syndrome

  3. #3
    DeltaMac is offline Tech
    Join Date
    Jun 2001
    Location
    Dover, DE
    Posts
    8,024
    Thanks
    3
    Thanked 660 Times in 649 Posts
    You're suggesting a folder merge, and not a copy. OS X does not do this by default. If you drop a folder on top of another folder with the same name, the new folder replaces the first and all its contents. The simplest way to do something similar to a folder merge, would be to open your source folder, select all the files, and drag them to your destination folder. This process will replace files with the same name (if they exist in both locations), and simply add the other files to those already existing.
    If you do a search on this site, you will probably find several threads that take this discussion to exhaustion. You'll find that not everyone likes the Mac results, but experienced Mac users have it figured out. A recent Windows convert might take issue with that point-of-view, but some prefer the 'Mac Way™'
    You will discover, also, that you can duplicate certain Windows-normal (whatever that is!) file operations with a couple of different third-party file utilities.
    Serendipity is a lucky guess !

  4. #4
    FLDStudio is offline Registered User
    Join Date
    Oct 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Use a third party file utility you say?
    Any suggestions as to one that will merge folders by default?

    I'm trying to copy folders which have a lot of sub folders, and copying files by each folder is just an insane way of doing things. (And yes, I'm native to a windows environment.)

  5. #5
    DeltaMac is offline Tech
    Join Date
    Jun 2001
    Location
    Dover, DE
    Posts
    8,024
    Thanks
    3
    Thanked 660 Times in 649 Posts
    http://www.versiontracker.com/dyn/moreinfo/macosx/34091


    Pathfinder will probably do what you want. It will do most anything with file/folder manipulation.

    http://www.cocoatech.com/
    Serendipity is a lucky guess !

  6. #6
    VirtualTracy is offline Thunderbirds are GO!
    Join Date
    Aug 2006
    Posts
    1,157
    Thanks
    23
    Thanked 63 Times in 62 Posts
    Finder doesn't let you name a folder using a previously taken name:



    To drop a folder with the same name, it has to be in a different location in your Home Directory, say your Documents folder.

    So, you can drop "Test" folder onto the "Test" folder which is on the Desktop and the result is that "Test" folder on your Desktop ( containing "File1" & "File2" ) now also contains the "Test" folder that was in the Documents folder ( containing "File3" & "File4" ) .... confused? I am .... and no files were overwritten in this experiment.

    I do realise, however, that if I drop a folder containing "File1" & "File2" over another folder also containing a "File1" & "File2", that the latter files will be overwritten IF, and only if I click 'ok' to the "Do you really want to replace, etc etc" dialogue window ...

    These two scenarios differ, though ....

  7. #7
    RacerX's Avatar
    RacerX is offline Old Rhapsody User
    Join Date
    Apr 2001
    Location
    US version of Siberia
    Posts
    2,588
    Thanks
    0
    Thanked 4 Times in 4 Posts
    Quote Originally Posted by FLDStudio View Post
    Use a third party file utility you say?
    Any suggestions as to one that will merge folders by default?

    I'm trying to copy folders which have a lot of sub folders, and copying files by each folder is just an insane way of doing things. (And yes, I'm native to a windows environment.)
    I heard that Microsoft has a product that does exactly what you want... maybe you should use that.


    I strongly... in the strongest possible terms, suggest that people new to any environment (Mac, Windows, Linux, Solaris, etc.) learn how to use that environment proficiently before attempting to screw up that environment with third party hacks. If you don't know how these environments are supposed to work when working correctly in their unmodified state, how in the world will you know when something is truly going wrong?

    Third party hacks are a risk for experienced Mac users... but at least an experienced Mac user would be able to tell if the hack has adversely effected their system. But someone who knows nothing about a new environment wouldn't know if something has gone wrong with the hack or their system.

    I'm a firm believer that not everyone should be using every platform... If you can't function or can't adapt in a new environment, then maybe you should seriously rethink leaving your original environment. Maybe Windows is the perfect environment for you and you are doing yourself a disservice here.

    At any rate, you really should take some time to learn how Macs work before making them work differently than designed.
    _____________________________________________
    Rhapsody Resource Page

  8. #8
    ex2bot's Avatar
    ex2bot is offline Registered Bot
    Join Date
    Apr 2002
    Location
    live?
    Posts
    1,540
    Thanks
    2
    Thanked 35 Times in 34 Posts
    FLDStudio,

    As mentioned before, you can open the source folder, Select All (Command-A), click and hold on one of the selected icons, and drag and drop them onto the destination folder.

    This actually requires just two additional steps as compared to Windows: you have to double-click on the source folder first and Select All. You don't have to drag each file individually.

    The Finder behaves this way by design. When Microsoft copied the Mac (poorly, I think), it decided that the default action for folders would be merge. Compare this to when you drop a document into a folder with a document of the same name. They don't _merge_; the other one gets replaced. In both cases on the Mac, you are warned that the destination folder or file will be _replaced_. My humble suggestion: Read those warnings carefully.

    Bot
    Please click THANKS if you found this information useful.
    Ex2bot is a Mac-based automated software bot. Any similarity to Skynet is coincidence. Do not be alarmed.

 

 
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •