Skip to content
forked from soh335/FileWatch

Simple FSEvents wrapper for Swift

License

Notifications You must be signed in to change notification settings

srj0x0/FileWatch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Carthage compatible

FileWatch

Simple FSEvents wrapper for Swift

INSTALL

CARTHAGE

  • Add github "soh335/FileWatch" to your Cartfile.
  • Run carthage update.
  • Add FileWatch.framework to Embedded Binaries.

USAGE

import FileWatch

let filewatch = try! FileWatch(paths: ["/path/to/dir"],  createFlag: [.UseCFTypes, .FileEvents], runLoop: RunLoop.current, latency: 3.0, eventHandler: { event in
    if event.flag.contains(.ItemIsFile) {
      debugPrint(event.path)
    }
})

LICENSE

  • MIT

About

Simple FSEvents wrapper for Swift

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 100.0%