struct Inotify::Event

Overview

Represents an inotify_event structure.

Defined in:

inotify/event.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String | Nil, path : String | Nil, mask : UInt32, cookie : UInt32, wd : Int32) #

Creates a new event.


[View source]

Instance Method Detail

def cookie : UInt32 #

Is a unique integer that connects related events.


[View source]
def cookie=(cookie : UInt32) #

Is a unique integer that connects related events.


[View source]
def directory? #

Returns if the event occurred against a directory.


[View source]
def mask : UInt32 #

Contains bits that describe the event that occurred.


[View source]
def mask=(mask : UInt32) #

Contains bits that describe the event that occurred.


[View source]
def name : String | Nil #

Name of the file or directory that triggered the event. Always nil if #wd is associated with a file.


[View source]
def name=(name : String | Nil) #

Name of the file or directory that triggered the event. Always nil if #wd is associated with a file.


[View source]
def path : String | Nil #

Watched path this event occurred against, may be nil if we don't have the associated WatchInfo.


[View source]
def path=(path : String | Nil) #

Watched path this event occurred against, may be nil if we don't have the associated WatchInfo.


[View source]
def type : Type #

Type of the event.


[View source]
def type_is?(bits) #

Returns whether the bits are set in #mask. Can be used with constants in LibInotify. Useful when #type is UNKNOWN.


[View source]
def wd : Int32 #

Watch descriptor wd identifies the watch for which this event occurred.


[View source]