andrewrk / node-s3-cli

command line utility to go along with node s3 module
MIT License
97 stars 35 forks source link

Sync complaining one target must be local for relative paths #25

Closed adamreisnz closed 8 years ago

adamreisnz commented 8 years ago

Does s3-cli not like relative paths?

s3-cli sync --delete-removed ./dist/staging s3://staging.example.org
one target must be from S3, the other must be from local file system.

s3-cli sync --delete-removed dist/staging s3://staging.example.org
one target must be from S3, the other must be from local file system.

I'd like to use this tool in my build process, and it's crucial that I can use relative paths (to CWD).

adamreisnz commented 8 years ago

It seems the problem was instead that the s3 bucket name didn't end with a trailing slash. You might want to make that error a bit clearer :)