DataAdapter โ€บ copy

DataAdapter.copy() method

Create a copy of a file. This will fail if there is already a file at normalizedNewPath.

Signature:

copy(normalizedPath: string, normalizedNewPath: string): Promise<void>;

Parameters

ParameterTypeDescription
normalizedPathstringpath to file, use normalizePath() to normalize beforehand.
normalizedNewPathstringpath to file, use normalizePath() to normalize beforehand.

Returns:

Promise<void>