struct Inotify::Event
- Inotify::Event
- Struct
- Value
- Object
Overview
Represents an inotify_event structure.
Defined in:
inotify/event.crConstructors
-
.new(name : String | Nil, path : String | Nil, mask : UInt32, cookie : UInt32, wd : Int32)
Creates a new event.
Instance Method Summary
-
#cookie : UInt32
Is a unique integer that connects related events.
-
#cookie=(cookie : UInt32)
Is a unique integer that connects related events.
-
#directory?
Returns if the event occurred against a directory.
-
#mask : UInt32
Contains bits that describe the event that occurred.
-
#mask=(mask : UInt32)
Contains bits that describe the event that occurred.
-
#name : String | Nil
Name of the file or directory that triggered the event.
-
#name=(name : String | Nil)
Name of the file or directory that triggered the event.
-
#path : String | Nil
Watched path this event occurred against, may be
nilif we don't have the associatedWatchInfo. -
#path=(path : String | Nil)
Watched path this event occurred against, may be
nilif we don't have the associatedWatchInfo. -
#type : Type
Typeof the event. -
#type_is?(bits)
Returns whether the bits are set in
#mask. -
#wd : Int32
Watch descriptor wd identifies the watch for which this event occurred.
Constructor Detail
Creates a new event.
Instance Method Detail
Name of the file or directory that triggered the event. Always nil if #wd is associated with a file.
Name of the file or directory that triggered the event. Always nil if #wd is associated with a file.
Watched path this event occurred against, may be nil if we don't have the associated WatchInfo.
Watched path this event occurred against, may be nil if we don't have the associated WatchInfo.
Returns whether the bits are set in #mask. Can be used with constants in LibInotify.
Useful when #type is UNKNOWN.