andrewrk / node-s3-client

high level amazon s3 client for node.js
MIT License
1k stars 303 forks source link

How i can exclude files for synchronise? #218

Closed TTATPuOT closed 5 years ago

TTATPuOT commented 5 years ago

Hello! How i can exclude some types of files for synchronise folders? On mac any folder has system file ".DS_Store", but how i can exclude it and upload all files without ".DS_Store"?

ddoice commented 5 years ago

Some pending PR opened in 2014 and last commit 2 years ago this repo looks pretty dead.

I needed to ignore some files so i created a new PR #220 and a npm package patched, you can install it with

npm i -S @ddoice/s3

then use it

const s3 = require("@ddoice/s3");

const params = {
   ...
   ignoreFiles: ['report.html','stats.json']
};