thephpleague / flysystem-rackspace

Flysystem Adapter for Rackspace
37 stars 28 forks source link

Allow setting etag header when sending update requests #25

Open georaldc opened 5 years ago

georaldc commented 5 years ago

I noticed that writes allowed etags to be passed for data integrity checks, but not update/put methods. This should fix that.

georaldc commented 5 years ago

Actually, now that I think about it, is there any reason why this adapter does not implement the CanOverwriteFiles interface? I haven't tested this yet, but I believe we can just use the write methods (which support passing headers just fine) to overwrite files if they already exist.