Skip to content

Commit

Permalink
Merge pull request #167 from hmcalister/Remove-data-directory-before-…
Browse files Browse the repository at this point in the history
…simulation

Update main to actually remove the data directory before simulation
  • Loading branch information
hmcalister authored May 3, 2023
2 parents 0f58be6 + d070455 commit 521ddf3
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 521ddf3

Please sign in to comment.