julik / zip_kit

Compact ZIP file writing/reading for Ruby, for streaming applications
MIT License
49 stars 5 forks source link

`ZipKit::PathSet::Conflict` When trying to follow example #15

Closed salmonsteak1 closed 21 hours ago

salmonsteak1 commented 23 hours ago

Hey there, I'm trying to use zip kit to upload my zip file as I am compressing it. Essentially it seems like what this example is doing. But, I'm getting a ZipKit::PathSet::Conflict error as shown:

image

Does anyone have any insights to this? For reference, I'm also using aws-sdk-s3 gem, version 1.119.2. My endpoint is a cloudflare R2 bucket which has the AWS S3 API compatibility. I've also tried updated my aws-sdk-s3 gem to the latest version and I have no luck.

Any help would be appreciated!

salmonsteak1 commented 21 hours ago

I found out why, I had to use binmode for write_stream:

 obj.upload_stream do |write_stream|
      write_stream.binmode
...