class FSWatch::Session

Defined in:

session.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(monitor_type : MonitorType = MonitorType::SystemDefault) #

[View source]

Class Method Detail

def self.build(*, latency : Float64 | Nil = nil, recursive : Bool | Nil = nil, directory_only : Bool | Nil = nil, follow_symlinks : Bool | Nil = nil, allow_overflow : Bool | Nil = nil, properties : Hash(String, String) | Nil = nil, event_type_filters : Array(EventTypeFilter) | Nil = nil, filters : Array(MonitorFilter) | Nil = nil) #

[View source]

Instance Method Detail

def add_event_type_filter(event_type : EventTypeFilter) #

[View source]
def add_filter(monitor_filter : MonitorFilter) #

[View source]
def add_path(path : String | Path) #

[View source]
def add_property(name : String, value : String) #

[View source]
def allow_overflow=(value : Bool) #

[View source]
def directory_only=(value : Bool) #

[View source]
def finalize #

[View source]
def follow_symlinks=(value : Bool) #

[View source]
def is_running #

[View source]
def latency=(value : Float64) #

[View source]
def on_change(&on_change : Event -> ) #

[View source]
def recursive=(value : Bool) #

[View source]
def start_monitor #

[View source]
def stop_monitor #

[View source]
def to_unsafe : LibFSWatch::Handle #

[View source]