Inotifier

iNotify type.

Create as many instances of this as you need. Each one has its own inotify file descriptor, and manages its own events

Destructor

~this
~this()
Undocumented in source.

Members

Functions

close
void close()

call when you're done with the inotifyer

consumeAllEvents
void consumeAllEvents()

Discard all pending events.

getEvent
const(Event)* getEvent()

get one pending inotify event

isOpen
bool isOpen()

Report whether Inotifier is open

open
void open()

call before using the inotifyer

removeWatch
void removeWatch(WatchDescriptor wd)

remove a previously registered watch point

watch
WatchDescriptor watch(const(char)[] path, uint mask)

add or change a watch point

Manifest constants

IN_ACCESS
enum IN_ACCESS;
IN_ALL_EVENTS
enum IN_ALL_EVENTS;
IN_ATTRIB
enum IN_ATTRIB;
IN_CLOSE
enum IN_CLOSE;
IN_CLOSE_NOWRITE
enum IN_CLOSE_NOWRITE;
IN_CLOSE_WRITE
enum IN_CLOSE_WRITE;
IN_CREATE
enum IN_CREATE;
IN_DELETE
enum IN_DELETE;
IN_DELETE_SELF
enum IN_DELETE_SELF;
IN_DONT_FOLLOW
enum IN_DONT_FOLLOW;
IN_EXCL_UNLINK
enum IN_EXCL_UNLINK;
IN_IGNORED
enum IN_IGNORED;
IN_ISDIR
enum IN_ISDIR;
IN_MASK_ADD
enum IN_MASK_ADD;
IN_MODIFY
enum IN_MODIFY;
IN_MOVE
enum IN_MOVE;
IN_MOVED_FROM
enum IN_MOVED_FROM;
IN_MOVED_TO
enum IN_MOVED_TO;
IN_MOVE_SELF
enum IN_MOVE_SELF;
IN_ONESHOT
enum IN_ONESHOT;
IN_ONLYDIR
enum IN_ONLYDIR;
IN_OPEN
enum IN_OPEN;
IN_Q_OVERFLOW
enum IN_Q_OVERFLOW;

See definition in the <a href="https://linux.die.net/man/7/inotify">inotify man page</a>.

Structs

Event
struct Event

The type of reported events

Meta