Instance Method

fileManager:shouldProceedAfterError:copyingItemAtURL:toURL:

Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified URL.

Declaration

- (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error copyingItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL;

Parameters

fileManager

The file manager object that attempted to copy the item.

error

The error that occurred during the attempt to copy.

srcURL

The URL or a file or directory that fileManager is attempting to copy.

dstURL

The URL or a file or directory to which fileManager is attempting to copy.

Return Value

YES if the operation should proceed or NO if it should be aborted. If you do not implement this method, the file manager assumes a response of NO.

Discussion

The file manager calls this method when there is a problem copying the item to the specified location. If you return YES, the file manager continues copying any other items and ignores the error.

This method performs the same task as the fileManager:shouldProceedAfterError:copyingItemAtPath:toPath: method and is preferred over that method in macOS 10.6 and later.

See Also

Copying an Item

- fileManager:shouldCopyItemAtURL:toURL:

Asks the delegate if the file manager should copy the specified item to the new URL.

- fileManager:shouldCopyItemAtPath:toPath:

Asks the delegate if the file manager should copy the specified item to the new path.

- fileManager:shouldProceedAfterError:copyingItemAtPath:toPath:

Asks the delegate if the move operation should continue after an error occurs while copying the item at the specified path.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software