src/blossoms/text_blossoms.cpp
/**
 * @brief check if path exist and is a file
 *
 * @param filePath path of the file to check
 * @param errorMessage reference for error-message
 *
 * @return true, if path is valid, else false
 */
@brief check if path exist and is a file
@param filePath path of the file to check
@param errorMessage reference for error-message

@return true, if path is valid, else false
@brief check if path exist and is a file @param filePath path of the file to check @param errorMessage reference for error - message @return true if path is valid else false
bool
checkFile(const std::string &filePath,
          std::string &errorMessage)
{
    if(bfs::exists(filePath) == false)
    {
        errorMessage = "path " + filePath + " doesn't exist";
        return false;
    }
    if(bfs::is_regular_file(filePath) == false)
    {
        errorMessage = "path " + filePath + " is not a file";
        return false;
    }
    return true;
}
bool checkFile ( const std :: string & filePath , std :: string & errorMessage ) { if ( bfs :: exists ( filePath ) == false ) { errorMessage = " " + filePath + " " ; return false ; } if ( bfs :: is_regular_file ( filePath ) == false ) { errorMessage = " " + filePath + " " ; return false ; } return true ; }
@brief check if path exist and is a file
 @param filePath path of the file to check
 @param errorMessage reference for error-message
@brief check if path exist and is a file @param filePath path of the file to check @param errorMessage reference for error - message