Skip to content

Commit

Permalink
Merge pull request #497 from nico29/docs/copy-improvements
Browse files Browse the repository at this point in the history
update copy documentation to show differences with cp
  • Loading branch information
jprichardson committed Oct 5, 2017
2 parents 1dd5c18 + 4f01664 commit 41a33c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/copy.md
Expand Up @@ -3,7 +3,7 @@
Copy a file or directory. The directory can have contents. Like `cp -r`.

- `src` `<String>`
- `dest` `<String>`
- `dest` `<String>` Note that if `src` is a file, `dest` cannot be a directory (see [issue #323](https://github.com/jprichardson/node-fs-extra/issues/323)).
- `options` `<Object>`
- `overwrite` `<boolean>`: 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` `<boolean>`: when `overwrite` is `false` and the destination exists, throw an error. Default is `false`.
Expand Down

0 comments on commit 41a33c2

Please sign in to comment.