chmouel / upcs

Upload to OpenStack Swift with curl easily
62 stars 13 forks source link

Add large file support #11

Closed rconradharris closed 11 years ago

rconradharris commented 11 years ago

Swift requires that files over 5GB be split into multiple segments, joined by a manifest file, allowing the object to be downloaded all-at-once.

This patch teaches upcs how to upload using this process as wells as adding a new option -z which allows the user to override the default 5GB segment size.

Also included is a test-suite to verify the correctness of files uploaded and downloaded using both the small and large-object functions.

chmouel commented 11 years ago

I'll be honest I haven't test but I'll send you the bugs on your way if i get some ;)