S3Sync.net
February 02, 2014, 01:34:07 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / Questions / Re: s3sync: Content-Length 0 on: August 04, 2007, 09:32:02 PM
Thank you clarifying that this only works with directories.

Is there a routine way for s3cmd.rb to find its include files? I put these scripts in my path, but they error because the required files do not have fully qualified paths. Does ruby have a variable for relative to the script path?

Thanks, Jerry
2  General Category / Questions / s3sync: Content-Length 0 on: August 04, 2007, 12:38:50 PM
Hi,

I am new to ruby and s3sync. It appears to be almost working. I can list buckets and put and get files, but the files are all zero length.

s3sync.rb -v -d s3sync.tar.gz bucketname:again

Trying command put bucketname again2/s3sync.tar.gz #<S3::S3Object:0xb7d68220> x-amz-acl public-read Content-Type application/x-gzip Content-Length 0 with 100 retries left

The file is Size: 26667

ruby 1.8.4 (2005-12-24) [i386-linux]

Does it relate to
headers['Content-Length'] = FileTest.size(file).to_s

Thanks, Jerry
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!