FSEventsWrapper icon indicating copy to clipboard operation
FSEventsWrapper copied to clipboard

Easily use FSEvents in Swift

= FSEventsWrapper François Lamboley [email protected]

A wrapper around FSEvents raw C APIs.

== Installation Use SPM.

== How to Use? [code,swift]

/* 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) } }