Instance Method

fileManager:shouldProceedAfterError:linkingItemAtPath:toPath:

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

Declaration

- (BOOL)fileManager:(NSFileManager *)fileManager shouldProceedAfterError:(NSError *)error linkingItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath;

Parameters

fileManager

The file manager object that attempted to create the link.

error

The error that occurred during the link attempt.

srcPath

The path to the attempted link location.

dstPath

The path to the file or directory that was the destination of the hard link.

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 creating a hard link to the item at the specified location. If you return YES, the file manager continues creating any other links associated with the current operation and ignores the error.

This method performs the same task as the fileManager:shouldProceedAfterError:linkingItemAtURL:toURL: method, which is preferred over this method in macOS 10.6 and later.

See Also

Linking an Item

- fileManager:shouldLinkItemAtURL:toURL:

Asks the delegate if a hard link should be created between the items at the two URLs.

- fileManager:shouldLinkItemAtPath:toPath:

Asks the delegate if a hard link should be created between the items at the two paths.

- fileManager:shouldProceedAfterError:linkingItemAtURL:toURL:

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