Skip to content

DataAdapter.copy method

DataAdapter › copy

Official

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:

Parameter Type Description
normalizedPath string path to file, use {@link normalizePath} to normalize beforehand.
normalizedNewPath string path to file, use {@link normalizePath} to normalize beforehand.

Returns: Promise<void>