Moving multiple files with name auto resolve

I am trying to move a couple of hundred files from one folder to another and most of the names are duplicated even though most of the files are not. Is there a way to force the GUI to auto-resolve the names and keep all files? If not, is there a way to do this from TERMINAL with a linux command?

I have called apple support and they said the 3 file limit is hard and cannot be changed because apparently people have "accidentally" lost multiple files doing this... although I do not understand how you can lose files when you are keeping both versions by automatically renaming them.

Mac Studio, macOS 14.2

Posted on Dec 19, 2023 7:54 PM

Reply
Question marked as Top-ranking reply

Posted on Jul 11, 2024 3:11 PM

You can hold down the option key to see the 'keep both' option with more than 3 files.

13 replies

Dec 22, 2023 6:42 AM in response to CAVelarde

Unless your Mac is incorrectly formatted for a case-sensitive filesystem, only one filename can exist in a given filesystem location without the Finder assigning a generation set as a suffix (e.g. foo 2.txt). That said, I do not understand your comment about:


"I am trying to move a couple of hundred files from one folder to another and most of the names are duplicated even though most of the files are not."


Can you clarify that statement?


You can have two filenames that are different and contain the same data and no macOS move/copy solution will attempt to reconcile duplicate data in different filenames. The default behavior for a macOS Terminal-based move (mv) operation is to overwrite files during a move, though it does have a "-n" switch to prevent overwrites.


MacOS is based on flavors of BSD UNIX, and although there may be Linux commands with the same name, the Free Software Foundation (GNU) has seen fit to add additional or conflicting named switch arguments to these applications that produce different results even for the same switch argument. Unfortunately, the majority of Google searches that post solutions are from those using Linux, and not macOS with wrong or impossible results.

Dec 22, 2023 9:51 AM in response to VikingOSX

It is exactly as it reads. I grab 876 files to move to another folder with similar files. The system tells me there are files with the same name and gives me the option to skip, overwrite, or cancel the move.


If I do this 4 files at a time the options are to keep both, overwrite, skip, or cancel the move.


Obviously this is extremely time consuming so I need to option to keep both when I am moving 876 files a lot more than when I am only moving 4.

Dec 22, 2023 12:11 PM in response to VikingOSX

What makes this limitation ironic is that it was made to keep people from losing files accidentally, and it actually does the opposite. By not having the option to keep both files when moving large amounts, you could lose any image that has the same name as a completely different image because of the way naming works on Files created or manipulated in iPhone or iPad. I hope Apple fixes this soon.

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.

Moving multiple files with name auto resolve

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