NSFileProviderError.Code.filenameCollision
An error indicating that an item with the same name already exists in the same directory.
Declaration
case filenameCollisionMentioned in
Discussion
Use the fileProviderErrorForCollision(with:) method to create properly formatted filenameCollision errors.
You have two options for resolving file name collisions:
Your file provider extension can return this error. In this case the system renames the new item.
You can rename the new item yourself. This gives you complete control over the process.
See Also
Error codes
NSFileProviderError.Code.insufficientQuotaNSFileProviderError.Code.noSuchItemNSFileProviderError.Code.notAuthenticatedNSFileProviderError.Code.serverUnreachableNSFileProviderError.Code.syncAnchorExpiredpageExpiredNSFileProviderError.Code.directoryNotEmptyNSFileProviderError.Code.providerNotFoundNSFileProviderError.Code.providerTranslocatedNSFileProviderError.Code.olderExtensionVersionRunningNSFileProviderError.Code.newerExtensionVersionFoundNSFileProviderError.Code.nonEvictableNSFileProviderError.Code.nonEvictableChildrenNSFileProviderError.Code.unsyncedEditsNSFileProviderError.Code.cannotSynchronize