module FileWatcher

Defined in:

file_watcher.cr
file_watcher/event.cr
file_watcher/snapshot.cr
file_watcher/watcher.cr

Constant Summary

VERSION = "0.1.0"

Class Method Summary

Class Method Detail

def self.watch(patterns : Enumerable, match_option : File::MatchOptions = File::MatchOptions.glob_default, follow_symlinks : Bool = false, interval : Time::Span = 1.second, & : Event -> _) : Nil #

[View source]
def self.watch(*patterns : String | Path, match_option : File::MatchOptions = File::MatchOptions.glob_default, follow_symlinks : Bool = false, interval : Time::Span = 1.second, & : Event -> _) : Nil #

[View source]