FileMonitor: Watch for file changes in a directory with a unified API on Linux and macOS.
struct FileMonitor
s11FileMonitorAAV
8CEIW
import FileMonitor
protocol WatcherDelegate
@discardableResult init(directory url: URL, delegate externDelegate: FileDidChangeDelegate? = nil) throws
var delegate: FileDidChangeDelegate? { get set }
var stream: AsyncStream<FileChange> { get }
func fileDidChanged(event: FileChangeEvent)
Called when the underlying subsystem detect a file change
func start() throws
Start watching file changes
func stop()
Stop watching file changes