I'm would like to make a copy of a folder with files and folders in it before I do anything to them. When I naively fileManager.copyItem() I get errors about .DS_Store files already existing (I think the Finder might be creating them before the copy gets to it). The destination directory is empty at the start of the process. Is there any way to tell copyItem to overwrite?
Is replaceItemAt() a way to do this, with backupItemName set to the original name and withoutDeletingBackupItem set in options? That seems so convoluted. Is there a better way?
6
1
1.9k