- Preparing search index...
- The search index is not available
extra-fs
- cpSync(source: string | URL, destination: string | URL, opts?: CopySyncOptions): void
Experimental
Parameters
-
source: string | URL
-
destination: string | URL
-
Optional
opts: CopySyncOptions
Returns void
Synchronously 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/
.Since
v16.7.0