Skip to main content
cpSync - node__fs.d.ts - Node documentation
function cpSync
Unstable

Usage in Deno

```typescript import { cpSync } from "node:node__fs.d.ts"; ```
cpSync(
source: string | URL,
destination: string | URL,
): void
Synchronously copies the entire directory structure from `src` to `dest`, including subdirectories and files. When copying a directory to another directory, globs are not supported and behavior is similar to `cp dir1/ dir2/`.

Parameters

source: string | URL
destination: string | URL
optional
opts: CopySyncOptions

Return Type

void