We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca78818 commit bccd595Copy full SHA for bccd595
1 file changed
crates/cli/src/commands/cp.rs
@@ -631,7 +631,11 @@ async fn download_prefix(
631
}
632
633
// Calculate relative path from prefix
634
- let relative_key = item.key.strip_prefix(&src.key).unwrap_or(&item.key);
+ let relative_key = item
635
+ .key
636
+ .strip_prefix(&src.key)
637
+ .unwrap_or(&item.key)
638
+ .trim_start_matches('/');
639
let dst_path =
640
dst.join(relative_key.replace('/', std::path::MAIN_SEPARATOR_STR));
641
0 commit comments