s3-recursive-uploader
v0.3.0
Published
recursively uploads files and directories to S3
Downloads
404
Readme
s3-recursive-uploader
recursively uploads files and directories to s3
Usage
import uploader from 's3-recursive-uploader';
uploader({
source: `${__dirname}/public`,
destination: 'my-bucket/assets/', // or 'mybucket' (trailing / is mandatory iff specifying a prefix)
ignoreHidden: true, // default, ignoring files starting with '.'
ignore: [], // passed to https://github.com/jergason/recursive-readdir
acl: 'public-read' // access policy for files. Defaults to 'private'. Passed to aws-sdk
})
.then((stats) => console.log('all done:', stats.count))
.catch((err) => console.error('Error', err));