Skip to content

copy2

copy2(src: string, dst: string): Promise<string>

Defined in: packages/pythonlib/src/shutil.node.ts:60

Copy the file src to the file or directory dst, preserving metadata.

Parameters

ParameterTypeDescription
srcstringSource file path
dststringDestination file or directory path

Returns

Promise<string>

The path to the newly created file