Instance Method

fileManager:willProcessPath:

An NSFileManager object sends this message to a handler immediately before attempting to move, copy, rename, or delete, or before attempting to link to a given path.

Declaration

- (void)fileManager:(NSFileManager *)fm willProcessPath:(NSString *)path;

Parameters

manager

The NSFileManager object that sent this message.

path

The path or a file or directory that manager is about to attempt to move, copy, rename, delete, or link to.

Discussion

You can implement this method in your handler to monitor file operations.