- cp(source, destination, callback): void
Experimental
Parameters
source: string | URL
destination: string | URL
callback: ((err) => void)
Returns void
- cp(source, destination, opts, callback): void
Parameters
source: string | URL
destination: string | URL
callback: ((err) => void)
Returns void
Asynchronously copies the entire directory structure from
src
todest
, including subdirectories and files.When copying a directory to another directory, globs are not supported and behavior is similar to
cp dir1/ dir2/
.