Skip to content
soh335Public

About

Simple FSEvents wrapper for Swift

Topics

Resources

Stars

19 stars

Watchers

2 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

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

Topics

Resources

Stars

19 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages