src/common/utils.cpp
bool Utils::isDir(const std::string& path)
{
    boost::filesystem::path check_path(path);
    if (boost::filesystem::exists(check_path))
    {
        return boost::filesystem::is_directory(path);
    }
    return false;
}
// Checks is the path a folder or not
Checks is the path a folder or not
Checks is the path a folder or not
bool Utils::isDir(const std::string& path)
{
    boost::filesystem::path check_path(path);
    if (boost::filesystem::exists(check_path))
    {
        return boost::filesystem::is_directory(path);
    }
    return false;
}
bool Utils :: isDir ( const std :: string & path ) { boost :: filesystem :: path check_path ( path ) ; if ( boost :: filesystem :: exists ( check_path ) ) { return boost :: filesystem :: is_directory ( path ) ; } return false ; }
Checks is the path a folder or not
Checks is the path a folder or not