20 #include "directorycleanuphandler.h" 22 #include "recursivedelete.h" 26 DirectoryCleanUpHandler::DirectoryCleanUpHandler(
const std::string &path)
31 bool DirectoryCleanUpHandler::clean()
34 log_warning() <<
"Folder " << m_path <<
" does not exist";
39 log_debug() <<
"rmdir'd " << m_path;
42 log_error() <<
"Can't rmdir " << m_path <<
" . Error :" << strerror(errno);
const std::string queryName() override
this function is needed to query member name
static RecursiveDelete & getInstance()
getInstance Gets the RecursiveDelete instance.
bool existsInFileSystem(const std::string &path)
existsInFileSystem Check if path exists
Developers guide to adding a config item: