cpAsync

external fun cpAsync(source: String, destination: String, opts: CopyOptions = definedExternally): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.core.Void>(source)
external fun cpAsync(source: String, destination: ERROR CLASS: Symbol not found for URL, opts: CopyOptions = definedExternally): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.core.Void>(source)
external fun cpAsync(source: ERROR CLASS: Symbol not found for URL, destination: String, opts: CopyOptions = definedExternally): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.core.Void>(source)
external fun cpAsync(source: ERROR CLASS: Symbol not found for URL, destination: ERROR CLASS: Symbol not found for URL, opts: CopyOptions = definedExternally): ERROR CLASS: Symbol not found for Promise<ERROR CLASS: Symbol not found for js.core.Void>(source)

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

Since

v16.7.0

Return

Fulfills with undefined upon success.

Parameters

src

source path to copy.

dest

destination path to copy to.