Add json retrieve test for archiver appliance

This commit is contained in:
Dominik Werder
2022-02-17 16:19:39 +01:00
parent 47acaa68a0
commit c6dba54a62
8 changed files with 201 additions and 14 deletions

View File

@@ -715,7 +715,9 @@ pub async fn channel_info(channel: &Channel, aa: &ArchiverAppliance) -> Result<C
msgs.push(format!("path: {}", dir.to_string_lossy()));
let mut scalar_type = None;
let mut shape = None;
let mut rd = read_dir(&dir).await?;
let mut rd = read_dir(&dir)
.await
.map_err(|e| Error::with_msg(format!("Can not open directory {dir:?} {e:?}")))?;
while let Some(de) = rd.next_entry().await? {
let s = de.file_name().to_string_lossy().into_owned();
if s.starts_with(&prefix) && s.ends_with(".pb") {