diff --git a/docs/copy-sync.md b/docs/copy-sync.md index 3fca1330..e7cc8b1e 100644 --- a/docs/copy-sync.md +++ b/docs/copy-sync.md @@ -7,6 +7,7 @@ Copy a file or directory. The directory can have contents. Like `cp -r`. - `options` `` - `overwrite` ``: overwrite existing file or directory, default is `true`. _Note that the copy operation will silently fail if you set this to `false` and the destination exists._ Use the `errorOnExist` option to change this behavior. - `errorOnExist` ``: when `overwrite` is `false` and the destination exists, throw an error. Default is `false`. + - `checkPathsBeforeCopying` ``: check `src` and `dest` paths before copying. Default is `true`. - `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. diff --git a/docs/copy.md b/docs/copy.md index 4add5684..a5ce8958 100644 --- a/docs/copy.md +++ b/docs/copy.md @@ -7,6 +7,7 @@ Copy a file or directory. The directory can have contents. Like `cp -r`. - `options` `` - `overwrite` ``: overwrite existing file or directory, default is `true`. _Note that the copy operation will silently fail if you set this to `false` and the destination exists._ Use the `errorOnExist` option to change this behavior. - `errorOnExist` ``: when `overwrite` is `false` and the destination exists, throw an error. Default is `false`. + - `checkPathsBeforeCopying` ``: check `src` and `dest` paths before copying. Default is `true`. - `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).