Hi,

When I run s3cmd get and specify a path to an object (or even bucket)
that doesn't exist (or I don't have access to), s3cmd still creates
the local file before reporting an error. This leaves the caller with
extra work when s3cmd returns an error. For example:

$ s3cmd get s3://98ugfuhsifushf/oijsdfoijsfoisjf
s3://98ugfuhsifushf/oijsdfoijsfoisjf -> ./oijsdfoijsfoisjf  [1 of 1]
ERROR: S3 error: 404 (Not Found)
$ echo $?
1
$ ls -l oijsdfoijsfoisjf
-rw-r--r-- 1 ubuntu ubuntu 0 2010-08-16 10:45 oijsdfoijsfoisjf

Cheers, Ketil

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
S3tools-general mailing list
S3tools-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/s3tools-general

Reply via email to