- Notifications
You must be signed in to change notification settings - Fork29
Monitor file system events using Swift
License
NotificationsYou must be signed in to change notification settings
njdehoog/Witness
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Monitor file system changes using Swift. Witness provides a wrapper around theFile System Events API for OS X.
The recommended way to include Witness in your project is by usingCarthage. Simply add this line to yourCartfile:
github "njdehoog/Witness" ~> 0.1Import the framework
import WitnessThis will trigger an event when a file in the Desktop directory is created, deleted or modified.
iflet desktopPath=NSSearchPathForDirectoriesInDomains(.desktopDirectory,.userDomainMask,true).first{self.witness=Witness(paths:[desktopPath], flags:.FileEvents, latency:0.3){ eventsinprint("file system events received:\(events)")}}
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
Witness was developed for use inSpelt. If you like this library, please consider supporting development by purchasing the app.
Witness is released under the MIT license. See LICENSE for details.
About
Monitor file system events using Swift
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Contributors3
Uh oh!
There was an error while loading.Please reload this page.