Error message "The operation can't be completed because an item with the name .DS_Store already exists"

Major headaches with copying files and folders between drives. I constantly (and I mean constantly) have to resort to copying files across in small batches (fewer than 10 works best) because anytime I try to copy lots of files and folders from my mac to an external hard drive (or from one external HD to a second external HD), I ALWAYS get the error message "The operation can't be completed because an item with the name .DS_Store already exists".


  • The files and folders are all Mac-generated, so hint or trace of foreign OSs in the mix.
  • All file types are susceptible
  • the HDs are all Mac OS X formatted, no foreign file formats involved
  • the HDs are all journal-enabled, OS X extended formats


have looked on here for previous posts, past suggestion was to disable creation of DS_Store files - not really a solution and realistically, defeats the purpose of their creation



any ideas anyone?

would appreciate any thoughts or sugestions, this has got me beat


the context is that I have a lot of image files that I am copying (trying to...) new external 3TB drives for backup and the job appears endless if I have to do this in batches of 10 or so..!



many thanks for any suggestions

MacBook Air, OS X Mountain Lion, (mid-2012) 8GB RAM

Posted on Nov 13, 2012 10:53 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 14, 2013 1:40 PM

Another handy way to copy is with Terminal.app. Open up a Terminal window, and type in 'cp -r '. Charlie Papa space dash Roger space. Switch to Finder, and drag-n-drop your source folder into Terminal. Back to Finder, take your destination folder and drag that into the Terminal window. Press enter in Terminal to start the operation, and cp will silently go to work. It should only produce text as it comes up with problems, either mentioning that it skipped a problem or asking you for a y/n. If cp is still asking you too many questions about overwriting stuff, you might want to up your game with 'cp -rf ' instead.


The title bar of Terminal will have 'cp' in the name while copying, that will turn back to 'bash' when the copy is done. This is much more visible in Terminal's tabs, you might want to open a second tab(Cmd-T) just for that.

25 replies

Feb 11, 2016 5:44 AM in response to EJW Tas

Late 2011 iMac running 10.11.3 El Capitan. I agree that the Finder copy bug is alive and well. I purchased an external drive to copy my media files from my NAS to take to work. It's a 1.5 TB Folder with 40,000 files and I get the can't copy because such and such file already exists, including the .DS_Store one from time to time. I'll try the Terminal cp-r or rf tonight when i get home. So frustruating, particularly when using slow, non-thunderbolt drives with files of this magnitude.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error message "The operation can't be completed because an item with the name .DS_Store already exists"

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.