|
Fray Engine
|
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. | |
Describes a detected change to the watched root or one of its entries.
Definition at line 118 of file file_watcher.hpp.
| bool fray::watch::Change::directory = false |
Whether the changed entry is a directory.
Definition at line 143 of file file_watcher.hpp.
| FileId fray::watch::Change::id |
Entry identity when available; ordinary entry removals leave it unset.
Definition at line 151 of file file_watcher.hpp.
| ChangeKind fray::watch::Change::kind = ChangeKind::Modified |
Kind of change detected.
Definition at line 123 of file file_watcher.hpp.
| 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.
| 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.
| std::string fray::watch::Change::previousRelative |
Previous root-relative entry path for a rename.
Definition at line 139 of file file_watcher.hpp.
| 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.
| bool fray::watch::Change::root = false |
Whether the change describes the watched root itself.
Definition at line 147 of file file_watcher.hpp.