diff --git a/docs/copy-sync.md b/docs/copy-sync.md index 3e5243cc8..2ccfe3dd5 100644 --- a/docs/copy-sync.md +++ b/docs/copy-sync.md @@ -9,7 +9,7 @@ Copy a file or directory. The directory can have contents. - `errorOnExist` ``: when `overwrite` is `false` and the destination exists, throw an error. Default is `false`. - `dereference` ``: dereference symlinks, default is `false`. - `preserveTimestamps` ``: When true, will set last modification and access times to the ones of the original source files. When false, timestamp behavior is OS-dependent. Default is `false`. - - `filter` ``: Function to filter copied files. Return `true` to include, `false` to exclude. + - `filter` ``: Function to filter copied files/directories. Return `true` to copy the item, `false` to ignore it. ## Example: diff --git a/docs/copy.md b/docs/copy.md index 0e66da583..f6e4d9802 100644 --- a/docs/copy.md +++ b/docs/copy.md @@ -9,7 +9,7 @@ Copy a file or directory. The directory can have contents. - `errorOnExist` ``: when `overwrite` is `false` and the destination exists, throw an error. Default is `false`. - `dereference` ``: dereference symlinks, default is `false`. - `preserveTimestamps` ``: When true, will set last modification and access times to the ones of the original source files. When false, timestamp behavior is OS-dependent. Default is `false`. - - `filter` ``: Function to filter copied files. Return `true` to include, `false` to exclude. Can also return a `Promise` that resolves to `true` or `false` (or pass in an `async` function). + - `filter` ``: Function to filter copied files/directories. Return `true` to copy the item, `false` to ignore it. Can also return a `Promise` that resolves to `true` or `false` (or pass in an `async` function). - `callback` `` - `err` ``