summaryrefslogtreecommitdiffstats
path: root/src/tarball.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tarball.rs')
-rw-r--r--src/tarball.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tarball.rs b/src/tarball.rs
index d414620..acbe47a 100644
--- a/src/tarball.rs
+++ b/src/tarball.rs
@@ -54,7 +54,7 @@ where
let relativized = canonical
.to_str()
.unwrap()
- .trim_left_matches(&base_path_str[..]);
+ .trim_start_matches(&base_path_str[..]);
if path.is_dir() {
archive.append_dir(Path::new(relativized), &canonical)?
} else {