20 #include "filecleanuphandler.h" 31 if (unlink(m_path.c_str()) == 0) {
32 log_debug() <<
"Unlinked " << m_path;
35 log_error() <<
"Can't delete " << m_path <<
" . Error :" << strerror(errno);
bool clean() override
clean Perform the cleanupHandler clean.
const std::string queryName() override
this function is needed to query member name
FileCleanUpHandler(const std::string &path)
FileCleanUpHandler Create a cleanupHandler for the Path, which will be deleted when running the clean...
Developers guide to adding a config item: