diff --git a/lib/batch/batch_secgen.rb b/lib/batch/batch_secgen.rb index b7972cec1..595b9b26c 100644 --- a/lib/batch/batch_secgen.rb +++ b/lib/batch/batch_secgen.rb @@ -244,6 +244,7 @@ def start(options) log.close # Back up project flags, scenario, and log file + FileUtils.mkdir_p("#{backup_path}#{project_id}") unless Dir.exist?("#{backup_path}#{project_id}") FileUtils.cp(log_path, ("#{backup_path}#{project_id}/" + log_name)) FileUtils.cp("#{project_path}/#{FLAGS_FILENAME}", "#{backup_path}#{project_id}/") FileUtils.cp("#{project_path}/scenario.xml", "#{backup_path}#{project_id}/")