libopenfpga/libopenfpgautil/src/openfpga_digest.cpp
/******************************************************************** 
 * Top function to create a directory with a given path
 * Allow users to select if use the recursive way or not
 *
 * Strongly recommend to use the recursive way, as it can maximum
 * guarantee the success in creation of directories
 ********************************************************************/
Top function to create a directory with a given path
Allow users to select if use the recursive way or not

Strongly recommend to use the recursive way, as it can maximum
guarantee the success in creation of directories
Top function to create a directory with a given path Allow users to select if use the recursive way or not Strongly recommend to use the recursive way as it can maximum guarantee the success in creation of directories
void create_directory(const std::string& dir_path, const bool& recursive) { 
  std::string formatted_dir_path = format_dir_path(dir_path);
  bool status = false;
  if (true == recursive) {
    status = rec_create_dir_path(formatted_dir_path); 
  } else {
    status = create_dir_path(formatted_dir_path, true);
  }
  if (false == status) {
    VTR_LOG_ERROR("Fail to create directory '%s'\n",
                  formatted_dir_path.c_str());
    exit(1);
  }
}
void create_directory ( const std :: string & dir_path , const bool & recursive ) { std :: string formatted_dir_path = format_dir_path ( dir_path ) ; bool status = false ; if ( true == recursive ) { status = rec_create_dir_path ( formatted_dir_path ) ; } else { status = create_dir_path ( formatted_dir_path , true ) ; } if ( false == status ) { VTR_LOG_ERROR ( " \n " , formatted_dir_path . c_str ( ) ) ; exit ( 1 ) ; } }
Top function to create a directory with a given path
 Allow users to select if use the recursive way or not
Top function to create a directory with a given path Allow users to select if use the recursive way or not