barnybug / s3

Swiss army pen-knife for Amazon S3: grep, cat, ls, sync, and more.
MIT License
57 stars 13 forks source link

put path/to/file s3://... should leave off the relative path on the destination file #5

Closed barnybug closed 8 years ago

barnybug commented 8 years ago

This behaves more like 'cp' intuitively. s3 put local/file s3://.../path uploads to s3://.../path s3 put local/file s3://.../path/ uploads to s3://.../path/file s3 put local s3://.../ uploads s3://.../local/... s3 put local/ s3://.../ uploads s3://.../l... s3 put local1/file1 local2/file2 s3://.../path - should refuse s3 put local1/file1 local2/file2 s3://.../path/ - uploads to s3://...path/file[12] s3 put local1/file1 local2/file2 localpath - should refuse