src/c++/include/common/Error.hh
/**
 * Error if given file doesn't exist
 * @param path_str
 */
Error if given file doesn't exist
@param path_str
Error if given file doesn ' t exist @param path_str
static inline void assertFileExists(const std::string& path_str)
{
    if (path_str.substr(0, 5) == "s3://")
    {
        return;
    }
    if (path_str.substr(0, 7) == "http://" || path_str.substr(0, 8) == "https://")
    {
        return;
    }
    boost::filesystem::path p(path_str);
    if (!boost::filesystem::is_regular_file(p))
    {
        error("ERROR: %s does not exist", path_str.c_str());
    }
}
static inline void assertFileExists ( const std :: string & path_str ) { if ( path_str . substr ( 0 , 5 ) == " " ) { return ; } if ( path_str . substr ( 0 , 7 ) == " " || path_str . substr ( 0 , 8 ) == " " ) { return ; } boost :: filesystem :: path p ( path_str ) ; if ( ! boost :: filesystem :: is_regular_file ( p ) ) { error ( " " , path_str . c_str ( ) ) ; } }
Error if given file doesn't exist
 @param path_str
Error if given file doesn ' t exist @param path_str
// allow S3 paths. // allow http(s) paths.