Skip to content

Commit 5992d0a

Browse files
committed
docs: add note about getS3Params
1 parent 5c67aaa commit 5992d0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ Syncs an entire directory to S3.
390390
* (optional) `deleteRemoved` - delete s3 objects with no corresponding local file.
391391
default false
392392
* (optional) `getS3Params` - function which will be called for every file that
393-
needs to be uploaded. See below.
393+
needs to be uploaded. You can use this to skip some files. See below.
394394
* (optional) `defaultContentType`: Unless you explicitly set the `ContentType`
395395
parameter in `s3Params`, it will be automatically set for you based on the
396396
file extension of `localFile`. If the extension is unrecognized,
@@ -460,7 +460,8 @@ Syncs an entire directory from S3.
460460
- `Bucket` (required)
461461
* (optional) `deleteRemoved` - delete local files with no corresponding s3 object. default `false`
462462
* (optional) `getS3Params` - function which will be called for every object that
463-
needs to be downloaded. See below.
463+
needs to be downloaded. You can use this to skip downloading some objects.
464+
See below.
464465

465466
```js
466467
function getS3Params(localFile, s3Object, callback) {

0 commit comments

Comments
 (0)