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

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: "s3cmd.rb get ..." returns 0 for Error 404  (Read 3780 times)
andyuk
Newbie
*
Posts: 1


View Profile
« on: June 18, 2008, 10:25:07 AM »


Eg.
# s3cmd.rb get bucket:file/that/does/not/exist local.txt
S3 command failed:
get_stream file/that/does/not/exist  #<File:0xb7907588>
With result 404 Not Found

# echo $?
0

Since an error occured I would expect 1 to be returned.
Also local.txt is created, I don't think this should happen if the file does not exist.

I had to write a horrible hack in my bash script to work around the issue.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!