Re: [S3tools-general] s3cmd get s3://whatever/nonexistant creates empty file

2010-08-16 Thread Michal Ludvig
On 08/16/2010 10:51 PM, Ketil Froyn wrote: > $ 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 oijsd

[S3tools-general] s3cmd get s3://whatever/nonexistant creates empty file

2010-08-16 Thread Ketil Froyn
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/