We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 105748d + 7ddc4f9 commit b8f30ffCopy full SHA for b8f30ff
libsql/src/sync.rs
@@ -309,7 +309,7 @@ impl SyncContext {
309
async fn read_metadata(&mut self) -> Result<()> {
310
let path = format!("{}-info", self.db_path);
311
312
- if !std::fs::exists(&path).map_err(SyncError::io("metadata file exists"))? {
+ if !Path::new(&path).try_exists().map_err(SyncError::io("metadata file exists"))? {
313
tracing::debug!("no metadata info file found");
314
return Ok(());
315
}
0 commit comments