Contents

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

func fileManager(_ fm: FileManager, willProcessPath path: String)

Parameters

  • fm:

    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.

See Also

Deprecated Methods