Skip to content

Commit

Permalink
Fixed circuit dir creation issue
Browse files Browse the repository at this point in the history
- If the directory path that we needed to create contained more than `1`
  directory, it would fail.
  • Loading branch information
BGluth committed Aug 14, 2024
1 parent d4f4b4b commit 0722475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zero_bin/common/src/prover_state/persistence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub(crate) trait DiskResource {

// Create the base folder if non-existent.
if std::fs::metadata(&circuits_dir).is_err() {
std::fs::create_dir(&circuits_dir).map_err(|err| {
std::fs::create_dir_all(&circuits_dir).map_err(|err| {
DiskResourceError::IoError::<Self::Error>(std::io::Error::other(format!(
"Could not create circuits folder at {} (err: {})",
err, circuits_dir
Expand Down

0 comments on commit 0722475

Please sign in to comment.