gulp-s3
gulp-s3 copied to clipboard
`uploadPath` fails without tailing slash
var aws = JSON.parse(fs.readFileSync('./aws.json')),
options = {
uploadPath: '/site/js'
};
gulp.src('./dist/file.js').pipe(s3(aws, options));
Results in the file being uploaded as: /site/jsfile.js
instead of /site/js/file.js
.