Vault › copy
Official
Create a copy of a file or folder.
Signature:
copy(file: T, newPath: string): Promise<T>
Parameters:
| Parameter | Type | Description |
| file | T | The file or folder. |
| newPath | string | Vault absolute path for the new copy. |
Returns: Promise<T>
Since: 1.8.7