add migration code

This commit is contained in:
dignifiedquire
2020-07-30 17:55:49 +02:00
parent 58a8ae1914
commit 48e5016abf
2 changed files with 91 additions and 2 deletions

View File

@@ -458,6 +458,13 @@ impl Context {
self.get_config(Config::ConfiguredMvboxFolder).await
== Some(folder_name.as_ref().to_string())
}
pub fn derive_blobdir(dbfile: &PathBuf) -> PathBuf {
let mut blob_fname = OsString::new();
blob_fname.push(dbfile.file_name().unwrap_or_default());
blob_fname.push("-blobs");
dbfile.with_file_name(blob_fname)
}
}
impl InnerContext {