Skip to content

Commit

Permalink
ENH: Update main.cpp
Browse files Browse the repository at this point in the history
This update ensures that there are no inconsistencies when the ouput directory has already been build then it just doesn't appends but first removes and then writes to the output directory.

Tests Passed: Yes
  • Loading branch information
User-DK authored Jul 19, 2024
1 parent 3ba2520 commit 8b50157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ int main( int argc, char * argv[] )
fmt::print( "Using input file: {}\n", config_file_path.string() );
fmt::print( "Output directory path set to: {}\n", output_dir_path.string() );

fs::remove_all(output_dir_path);// Remove any existing output directory
fs::create_directories( output_dir_path ); // Create the output directory

auto simulation_options = Seldon::Config::parse_config_file( config_file_path.string() );
Expand Down

0 comments on commit 8b50157

Please sign in to comment.