From 7aa73f300a5265ab8384b7e9969aa55b072a1ed3 Mon Sep 17 00:00:00 2001 From: debris Date: Mon, 20 Jun 2016 22:35:59 +0200 Subject: [PATCH] fixed migration of empty pruning dir --- parity/migration.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/parity/migration.rs b/parity/migration.rs index 9f1c4c52e..4198f7ed0 100644 --- a/parity/migration.rs +++ b/parity/migration.rs @@ -89,6 +89,7 @@ fn current_version(path: &PathBuf) -> Result { /// Writes current database version to the file. /// Creates a new file if the version file does not exist yet. fn update_version(path: &PathBuf) -> Result<(), Error> { + try!(fs::create_dir_all(path)); let mut file = try!(File::create(version_file_path(path))); try!(file.write_all(format!("{}", CURRENT_VERSION).as_bytes())); Ok(())