Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files uploaded twice with bucketPrefix #85

Closed
DimiF4W opened this issue May 28, 2021 · 2 comments
Closed

Files uploaded twice with bucketPrefix #85

DimiF4W opened this issue May 28, 2021 · 2 comments

Comments

@DimiF4W
Copy link

DimiF4W commented May 28, 2021

Hi guys,

Im a new user of s3sync with serverless but I noticed my files are uploaded 2 times if I use bucketPrefix.
My files are always uploaded in the root AND in the bucketPrefix/folder.

custom:
  s3Sync:
    - bucketNameKey: AssetBucketRef
      bucketPrefix: assets
      localDir: ./dist/
      deleteRemoved: true
      acl: public-read
      params:
        - "*.*":
            CacheControl: 'public, max-age=31536000'

This results in a /assets/xxx.json file AND a /xxx.json file.
If I remove files and deleteRemoved is enabled, only the files in the bucketPrefix folder are removed, the files in the root are not removed.

Can someone check this please?

Thanks

@DimiF4W
Copy link
Author

DimiF4W commented May 28, 2021

When you remove params it works as expected, so a bug I assume when using params and bucketPrefix together?

@DimiF4W
Copy link
Author

DimiF4W commented May 28, 2021

Duplicate of #57

@DimiF4W DimiF4W closed this as completed May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant