summaryrefslogtreecommitdiffstats
path: root/src/filestore/staging.rs
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2020-11-06 18:02:13 +0100
committerMatthias Beyer <mail@beyermatthias.de>2020-11-07 14:53:15 +0100
commit1f8e24c78f5b7ca6ca1cdbd51962a104e7871bff (patch)
tree15c1be2ad58fac290558f032d8f2e3c7f1d56c88 /src/filestore/staging.rs
parentf3c2f9f736b4827afd19f0fc6aca3d8b14a7b27c (diff)
Fix: We only care about file entries from the result TAR
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/filestore/staging.rs')
-rw-r--r--src/filestore/staging.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/filestore/staging.rs b/src/filestore/staging.rs
index 8b6de55..081fc1d 100644
--- a/src/filestore/staging.rs
+++ b/src/filestore/staging.rs
@@ -7,6 +7,7 @@ use anyhow::Error;
use indicatif::ProgressBar;
use futures::stream::Stream;
use resiter::Map;
+use resiter::Filter;
use tar;
use crate::filestore::util::FileStoreImpl;
@@ -49,6 +50,7 @@ impl StagingStore {
Ok(p)
})
.map_ok(|path| dest.join(path))
+ .filter_ok(|p| p.is_file())
.collect::<Result<Vec<_>>>()?;
tar::Archive::new(&bytes[..])