Skip to content

Watch for changes to flagged files in the OSX filesystem (even when they're moved around).

Notifications You must be signed in to change notification settings

psugihara/FileWatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

FileWatcher is a simple class to watch for changes on files in OSX. FileWatcher will see changes and keep track of file locations even if the user moves the files in the finder. All the magic happens in FileWatcher.m.

To run the test app see the example in the applicationDidFinishLaunching method of ./FileWatcherExample/Classes/FileWatcherExampleAppDelegate.m.
Once a path is given to the watcher, watch the console as you make changes to the file.

This is free under the MIT license, so do whatever with it (Dropbox clones anyone?).

-Peter Sugihara

References:
- http://developer.apple.com/library/mac/#featuredarticles/FileSystemEvents/index.html
- http://www.cocoabuilder.com/archive/cocoa/284420-how-do-get-file-reference-o-relying-on-the-path.html

About

Watch for changes to flagged files in the OSX filesystem (even when they're moved around).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published