FSEventsWrapper

2.1.0

Easily use FSEvents in Swift
Frizlab/FSEventsWrapper

What's New

FSEventsWrapper 2.1

2023-07-18T16:33:05Z

New in this release:

FSEventsWrapper

A wrapper around FSEvents raw C APIs.

Installation

Use SPM.

How to Use?

/* Using a standard callback. */
let w = FSEventStream(path: "awesome/path", callback: { stream, event in NSLog("%@", String(describing: event)) })
w?.startWatching()

/* Or with an AsyncStream. */
Task {
   for await event in FSEventAsyncStream(path: "awesome/path") {
      print(event)
   }
}

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Nov 06 2024 11:20:49 GMT-1000 (Hawaii-Aleutian Standard Time)