Asks the delegate if the file manager should copy the specified item to the new URL.
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The file manager object that is attempting to copy the file or directory.
The URL of the file or directory that the file manager wants to copy.
The URL specifying the location for the copied file or directory.
YES if the item should be copied or
NO if the file manager should stop copying items associated with the current operation. If you do not implement this method, the file manager assumes a response of
This method is called once for each item that needs to be copied. Thus, for a directory, this method is called once for the directory and once for each item in the directory.
This method performs the same task as the
file method and is preferred over that method in macOS 10.6 and later.