clineamb / gulp-s3-upload

A gulp task to upload/update assets to an S3 account.
62 stars 37 forks source link

Can't have locally deleted files to be deleted in S3 #20

Closed lucas-nadalutti closed 9 years ago

lucas-nadalutti commented 9 years ago

I noticed that renamed/deleted files aren't deleted in my S3 bucket. Is this the expected behavior?

Thanks in advance!

clineamb commented 9 years ago

Yes, this is indeed expected behavior of the current version. This is a strict upload task (currently) and does not mirror. The plugin does not detect for name changes, since changing the name of an object creates a whole new ETag (hash of the file), since it is indeed a change to said file.

This can be added as a feature, though I think it might be better served a as a separate task plugin.