Pradeeplogme / s3-bash

Automatically exported from code.google.com/p/s3-bash
Other
0 stars 0 forks source link

s3-put works with locate but not s3-get #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
raph

s3-put works with spanish locate !!!

I did my test wrong because I not write the file name in s3.

I did:

./s3-put -T file.zip -k XXXXXXXXXXXXXXXX -s file /roberto-files

but I must write

./s3-put -T file.zip -k XXXXXXXXXXXXXX -s file /roberto-files/file.zip

All works fine !!

I have tested s3-get but not works, I have garbage output (I attach a
screenshot)

roberto
Thanks

roberto

Original issue reported on code.google.com by rjpere...@gmail.com on 5 Oct 2007 at 11:47

Attachments:

GoogleCodeExporter commented 8 years ago
Roberto,

(1) That's expected behavior. There is no reason why the name of the uploaded 
file
should match that on disc - an unix file system has completely different escape
characters to an URL. For example, you might want to upload a zip as
http://s3.amazonaws.com/roberto-files/file (and give it a mime type of
application/zip, say) but call it on disc as file.zip.

(2) s3-get
I think this is fine. s3-get, when it gets a file, streams it to standard 
output.
This is so you can pipe it or redirect the output to another unix utility.

This output for a zip or tar.gz would binary. Try uploading a text file and 
using
s3-get to retrieve it - you should get readable output. 

To save a file, use a stdout redirector. ./s3-get -s key ON4BJ_ETC
/roberto-files/file.zip > myfilename.zip

Original comment by raphael....@gmail.com on 5 Oct 2007 at 5:23