Skip to content
Snippets Groups Projects
Commit 374667af authored by Simon Sapin's avatar Simon Sapin
Browse files

Pack dataset at the root of the tar archives, not a subdirectory

parent 0cb8d744
No related branches found
No related tags found
1 merge request!1Initial implementation
......@@ -115,7 +115,7 @@
zstd.multithread(num_cpus::get() as _)?;
let mut tar = tar::Builder::new(zstd);
tar.follow_symlinks(false);
tar.append_dir_all(base_name, &args.source_directory)?;
tar.append_dir_all("", &args.source_directory)?;
// Peel the onion
let zstd = tar.into_inner()?;
let Tee(mut tmp_file, sha) = zstd.finish()?;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment