Fray Engine
Loading...
Searching...
No Matches
fray::watch::Change Struct Reference

Describes a detected change to the watched root or one of its entries. More...

#include <file_watcher.hpp>

Public Attributes

ChangeKind kind = ChangeKind::Modified
 Kind of change detected.
std::filesystem::path path
 Path of the changed entry when detected, based on the watched root.
std::filesystem::path previousPath
 Previous path for a rename; root removals also record the old root here.
std::string relative
 Entry path relative to the watched root, empty for root changes.
std::string previousRelative
 Previous root-relative entry path for a rename.
bool directory = false
 Whether the changed entry is a directory.
bool root = false
 Whether the change describes the watched root itself.
FileId id
 Entry identity when available; ordinary entry removals leave it unset.

Detailed Description

Describes a detected change to the watched root or one of its entries.

Definition at line 118 of file file_watcher.hpp.

Member Data Documentation

◆ directory

bool fray::watch::Change::directory = false

Whether the changed entry is a directory.

Definition at line 143 of file file_watcher.hpp.

◆ id

FileId fray::watch::Change::id

Entry identity when available; ordinary entry removals leave it unset.

Definition at line 151 of file file_watcher.hpp.

◆ kind

ChangeKind fray::watch::Change::kind = ChangeKind::Modified

Kind of change detected.

Definition at line 123 of file file_watcher.hpp.

◆ path

std::filesystem::path fray::watch::Change::path

Path of the changed entry when detected, based on the watched root.

Definition at line 127 of file file_watcher.hpp.

◆ previousPath

std::filesystem::path fray::watch::Change::previousPath

Previous path for a rename; root removals also record the old root here.

Definition at line 131 of file file_watcher.hpp.

◆ previousRelative

std::string fray::watch::Change::previousRelative

Previous root-relative entry path for a rename.

Definition at line 139 of file file_watcher.hpp.

◆ relative

std::string fray::watch::Change::relative

Entry path relative to the watched root, empty for root changes.

Definition at line 135 of file file_watcher.hpp.

◆ root

bool fray::watch::Change::root = false

Whether the change describes the watched root itself.

Definition at line 147 of file file_watcher.hpp.


The documentation for this struct was generated from the following file: