Nodefscpfunction cpunstableOverload 1#cp(source: string | URL,destination: string | URL,callback: (err: ErrnoException | null) => void,): voidAsynchronously 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 #callback: (err: ErrnoException | null) => void Return Type #void Overload 2#cp(source: string | URL,destination: string | URL,opts: CopyOptions,callback: (err: ErrnoException | null) => void,): voidParameters ##source: string | URL #destination: string | URL #opts: CopyOptions #callback: (err: ErrnoException | null) => void Return Type #void
function cpunstableOverload 1#cp(source: string | URL,destination: string | URL,callback: (err: ErrnoException | null) => void,): voidAsynchronously 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 #callback: (err: ErrnoException | null) => void Return Type #void Overload 2#cp(source: string | URL,destination: string | URL,opts: CopyOptions,callback: (err: ErrnoException | null) => void,): voidParameters ##source: string | URL #destination: string | URL #opts: CopyOptions #callback: (err: ErrnoException | null) => void Return Type #void