#include <siplasplas/fswatch/fslistener.hpp>
#include <iostream>
int main()
{
    efsw::FileWatcher watcher;
    {
        std::cout << fmt::format("(watch {}) {}, {}: file created", watchId, directory, filename) << std::endl;
    });
    {
        std::cout << fmt::format("(watch {}) {}, {}: file deleted", watchId, directory, filename) << std::endl;
    });
    {
        std::cout << fmt::format("(watch {}) {}, {}: file modified", watchId, directory, filename) << std::endl;
    });
    {
        std::cout << fmt::format("(watch {}) {}, (oldfile {}) {} : file moved", watchId, directory, oldFilename, newFilename) << std::endl;
    });
    
    efsw::WatchID watchId = watcher.addWatch("/tmp", &listener, true);
    watcher.watch();
    while(true); 
}