Contents

NSFileProviderError.Code.filenameCollision

An error indicating that an item with the same name already exists in the same directory.

Declaration

case filenameCollision

Mentioned 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