Skip to content

Commit

Permalink
Don't construct Pelican URLs for stashcp copies
Browse files Browse the repository at this point in the history
Stashcp needs to determine the copy direction dynamically, so we can't treat
the source as a defacto Pelican URL. This change lets DoCopy determine the
direction.
  • Loading branch information
jhiemstrawisc authored and turetske committed Oct 9, 2024
1 parent a3b8b1c commit 156743f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/object_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@ func copyMain(cmd *cobra.Command, args []string) {
lastSrc := ""

for _, src := range source {
src, result = utils.UrlWithFederation(src)
if result != nil {
lastSrc = src
break
}
isRecursive, _ := cmd.Flags().GetBool("recursive")
_, result = client.DoCopy(ctx, src, dest, isRecursive, client.WithCallback(pb.callback), client.WithTokenLocation(tokenLocation), client.WithCaches(caches...))
if result != nil {
Expand Down

0 comments on commit 156743f

Please sign in to comment.