Fcp
Bun

function

fs.promises.cp

function cp(
source: string | URL,
destination: string | URL,
): Promise<void>;

Asynchronously 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/.

@returns

Fulfills with undefined upon success.

Referenced types

class URL

The URL interface represents an object providing static methods used for creating object URLs.

MDN Reference