UNPKG

aws-s3-synch

Version:

Provides utilities to synch local file structure to AWS S3 and vice versa.

35 lines (23 loc) 839 B
var path = require('path'); var awsSynch = require("./aws-s3-synch"); /* var params = { // [required] Source directory or file path on AWS source: `s3://my-test-bucket/folder1/folder2/`, // [required] Destination directory path on target machine. destination: path.join(__dirname, "test"), // [required] Skip if respective file already exists in destination directory skipExisting: true, // [required] For an operation, it takes precedence on skipExisting force: false, // [required] true means simulate, false means perform respective action in bucket test: false, // [optional, default: false] if download fails due to slow internet or somehow, use continue: true to resume continue: false }; awsSynch.synchFromS3(params) */ module.exports = { synchToS3: awsSynch.synchToS3, synchFromS3: awsSynch.synchFromS3 }