From d5d75fb4fac5e8c74e00054c917c88ad668c261e Mon Sep 17 00:00:00 2001 From: Trinity Pointard Date: Tue, 14 Dec 2021 18:20:33 +0100 Subject: [PATCH] process compressed block when listing all files --- src/model/Cargo.toml | 2 +- src/model/block.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/model/Cargo.toml b/src/model/Cargo.toml index 48b74991..1d695192 100644 --- a/src/model/Cargo.toml +++ b/src/model/Cargo.toml @@ -23,7 +23,7 @@ arc-swap = "1.0" hex = "0.4" log = "0.4" rand = "0.8" -zstd = "0.9" +zstd = { version = "0.9", default-features = false } sled = "0.34" diff --git a/src/model/block.rs b/src/model/block.rs index b1f2a3fa..6df8e265 100644 --- a/src/model/block.rs +++ b/src/model/block.rs @@ -697,6 +697,7 @@ impl BlockManager { }; let ent_type = data_dir_ent.file_type().await?; + let name = name.strip_suffix(".zst").unwrap_or(&name); if name.len() == 2 && hex::decode(&name).is_ok() && ent_type.is_dir() { state = self .for_each_file_rec(&data_dir_ent.path(), state, f, must_exit)