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
Parameter | Type | Description |
---|---|---|
normalizedPath | string | path to file, use normalizePath() to normalize beforehand. |
normalizedNewPath | string | path to file, use normalizePath() to normalize beforehand. |
Returns:
Promise<void>