From: Ketil F. <ke...@fr...> - 2010-08-16 11:21:02
|
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 |