Ensure farf_dir() exists before it's accessed

This commit is contained in:
Michael Vines 2022-03-23 07:58:06 -07:00
parent 988210908c
commit 32c008e02a
1 changed files with 1 additions and 0 deletions

View File

@ -2892,6 +2892,7 @@ impl SnapshotValidatorConfig {
}
// Create the snapshot config
let _ = fs::create_dir_all(farf_dir());
let bank_snapshots_dir = tempfile::tempdir_in(farf_dir()).unwrap();
let snapshot_archives_dir = tempfile::tempdir_in(farf_dir()).unwrap();
let snapshot_config = SnapshotConfig {