DTFolderMonitor Class Reference
Class for monitoring changes on a folder. This can be used to monitor the application documents folder for changes in the files there if the user adds or removes files via iTunes file sharing.
Creating a Folder Monitor
Creates a new DTFolderMonitor to watch the folder at the given URL. Whenever there is a change on this folder the block is executed.
+ (DTFolderMonitor *)folderMonitorForURL:(NSURL *)URL block:(DTFolderMonitorBlock)block
The monitored folder URL
The block to execute if the folder is being modified
The instantiated monitor in suspended mode. Call startMonitoring to start monitoring.
The URL must be a file URL. Both the URL and the block parameter are mandatory. The block is being dispatched on a background queue.
Start monitoring the folder. A monitor can be started and stopped multiple times.