fix(rustdb-storage): return empty collection list for missing databases
This commit is contained in:
@@ -473,7 +473,7 @@ impl FileStorageAdapter {
|
||||
fn list_collection_dirs(&self, db: &str) -> StorageResult<Vec<String>> {
|
||||
let db_dir = self.db_dir(db);
|
||||
if !db_dir.exists() {
|
||||
return Err(StorageError::NotFound(format!("database '{db}'")));
|
||||
return Ok(Vec::new());
|
||||
}
|
||||
let mut colls = Vec::new();
|
||||
let entries = std::fs::read_dir(&db_dir)?;
|
||||
|
||||
Reference in New Issue
Block a user