FileWatcher icon indicating copy to clipboard operation
FileWatcher copied to clipboard

Monitoring file system changes in macOS

Results 8 FileWatcher issues
Sort by recently updated
recently updated
newest added

Hi, I'm using this library in a brand new vanilla SwiftUI project and anytime I make a change to a file, the callback is getting triggered twice: ``` import FileWatcher...

After importing the project and getting it setup, I tested deleting files from a directory. The notifications fire properly but they state that the file was renamed instead of removed....

https://developer.apple.com/forums/thread/90531

Hello, when targeting macOS 13, compiler shows warning "FSEventStreamSetDispatchQueue was deprecated" in FileWatcher.swift line 43. Thanks and with best regards Petr Pavlicek

Observing changes in a file with DispatchSource The final “lesser known” feature of GCD that I want to bring up is how it provides a way to observe changes in...

https://github.com/eonist/swift-utils/commit/d631b9c5401692ec9518be2d2fcd10bafb93a1b2#diff-5c6af8db916751978b35427cb86d3c2b

Use Enums? I'll make an example soonish

Could we make the instance variable non-optional? Example: ```swift lazy var someSize:CGSize = { let x:CGFloat = 0 let y:CGFloat = 0 let size = CGSize(x,y,0,0) return size }() //Now...