Registry / utility / thomasmonkman-filewatch

thomasmonkman-filewatch

JSON →
library2023-01-16vcpkgunverified

File watcher in C++.

vcpkg install thomasmonkman-filewatch
INSTALL
IMPORT
SIG · THOMASMONKMAN-FILE
T
thomasmonkman-filewatch
utilitycppv2023-01-16
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

filewatch/filewatch.hpp
#include <filewatch/filewatch.hpp>

Monitor a directory for file changes

#include <filewatch/filewatch.hpp> #include <iostream> #include <thread> int main() { filewatch::FileWatch<std::string> watch("./"); std::thread t([&watch]() { watch.start([](const std::string& path, filewatch::Event event) { std::cout << "File changed: " << path << std::endl; }); }); std::this_thread::sleep_for(std::chrono::seconds(5)); watch.stop(); t.join(); return 0; }
Debug
Known issues
gotchaOn Linux, this library uses inotify; on Windows, it uses ReadDirectoryChangesW. Ensure platform compatibility.
fix
Use on supported platforms (Linux, Windows, macOS).
affects: *
Upgrade
Version history
2023-01-16latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

thomasmonkman-filewatch — pip install thomasmonkman-filewatch · libregistry