Skip to content

Commit

Permalink
Show correct path uploading to bucket roots
Browse files Browse the repository at this point in the history
  • Loading branch information
disq committed May 18, 2017
1 parent 17851d1 commit a3c74f4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion core/job.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,18 @@ func (a *JobArgument) Append(s string, isS3path bool) *JobArgument {
s = strings.Replace(s, "/", string(filepath.Separator), -1)
}

a.arg += s
if a.s3 != nil {
if a.s3.Key == "" {
a.arg += "/" + s
} else {
a.arg += s
}

a.s3.Key += s
} else {
a.arg += s
}

return a
}

Expand Down

0 comments on commit a3c74f4

Please sign in to comment.