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 宣言

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

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.

See Also 参照

Deprecated Methods 非推奨メソッド