mirror of https://github.com/dswd/zvault
Creating empty bundle cache on init to avoid warninigs
This commit is contained in:
parent
363971d619
commit
1e4831bb27
|
@ -4,8 +4,11 @@ This project follows [semantic versioning](http://semver.org).
|
||||||
|
|
||||||
|
|
||||||
### UNRELEASED
|
### UNRELEASED
|
||||||
- Calling sodiumoxide::init for faster algorithms and thread safety (not needed)
|
- [added] Added CHANGELOG
|
||||||
- Locking local repository to avoid index corruption
|
- [added] Locking local repository to avoid index corruption
|
||||||
|
- [fixed] Creating empty bundle cache on init to avoid warninigs
|
||||||
|
- [fixed] Calling sodiumoxide::init for faster algorithms and thread safety (not needed)
|
||||||
|
|
||||||
|
|
||||||
### v0.1.0 (2017-04-11)
|
### v0.1.0 (2017-04-11)
|
||||||
First working alpha release
|
First working alpha release
|
||||||
|
|
|
@ -200,6 +200,8 @@ impl BundleDb {
|
||||||
try!(fs::create_dir_all(layout.remote_bundles_path()).context(&layout.remote_bundles_path() as &Path));
|
try!(fs::create_dir_all(layout.remote_bundles_path()).context(&layout.remote_bundles_path() as &Path));
|
||||||
try!(fs::create_dir_all(layout.local_bundles_path()).context(&layout.local_bundles_path() as &Path));
|
try!(fs::create_dir_all(layout.local_bundles_path()).context(&layout.local_bundles_path() as &Path));
|
||||||
try!(fs::create_dir_all(layout.temp_bundles_path()).context(&layout.temp_bundles_path() as &Path));
|
try!(fs::create_dir_all(layout.temp_bundles_path()).context(&layout.temp_bundles_path() as &Path));
|
||||||
|
try!(StoredBundle::save_list_to(&[], layout.local_bundle_cache_path()));
|
||||||
|
try!(StoredBundle::save_list_to(&[], layout.remote_bundle_cache_path()));
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue