Struct FsEventEvent

Synopsis

#include <src/uvw/fs_event.h>

struct FsEventEvent

Description

FsEventEvent event.

It will be emitted by FsEventHandle according with its functionalities.

Methods

FsEventEvent

Source

Lines 40-60 in src/uvw/fs_event.h.

struct FsEventEvent {
    FsEventEvent(const char * pathname, Flags<details::UVFsEvent> events);

    /**
     * @brief The path to the file being monitored.
     *
     * If the handle was started with a directory, the filename parameter will
     * be a relative path to a file contained in the directory.
     */
    const char * filename;

    /**
     * @brief Detected events all in one.
     *
     * Available flags are:
     *
     * * `FsEventHandle::Watch::RENAME`
     * * `FsEventHandle::Watch::CHANGE`
     */
    Flags<details::UVFsEvent> flags;
};





Add Discussion as Guest

Log in