diff --git a/patch-db/src/lib.rs b/patch-db/src/lib.rs index 57714af..a82850c 100644 --- a/patch-db/src/lib.rs +++ b/patch-db/src/lib.rs @@ -200,6 +200,9 @@ pub struct Store { } impl Store { pub async fn open>(path: P) -> Result { + if !path.as_ref().exists() { + tokio::fs::File::create(path.as_ref()).await?; + } let path = tokio::fs::canonicalize(path).await?; let _lock = { let mut lock = OPEN_STORES.lock().await;