Skip to content

Commit

Permalink
Update main to actually remove the data directory before simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
hmcalister committed May 3, 2023
1 parent d5cfaef commit d070455
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ func init() {

// Remove old data directory and recreate
logger.Printf("Creating data directory %#v\n", *dataDirectory)
if err := os.RemoveAll(*dataDirectory); err != nil {
panic(err)
}
os.MkdirAll(*dataDirectory, 0700)

// Set up data collector to handle events during this trial
Expand Down

0 comments on commit d070455

Please sign in to comment.