Build src path on basis of storage prefix when symlinking

This commit is contained in:
Oliver Sauder
2017-11-21 10:32:15 +01:00
parent 3efa1052fa
commit e504fdcd54

View File

@@ -390,7 +390,7 @@ func (storage *PublishedStorage) SymLink(src string, dst string) error {
params := &s3.CopyObjectInput{
Bucket: aws.String(storage.bucket),
CopySource: aws.String(src),
CopySource: aws.String(filepath.Join(storage.prefix, src)),
Key: aws.String(filepath.Join(storage.prefix, dst)),
ACL: aws.String(storage.acl),
Metadata: map[string]*string{