Skip to content

Vault.copy method

Vault › copy

Official

Create a copy of a file or folder.

Signature:

copy(file: T, newPath: string): Promise<T>

Parameters:

ParameterTypeDescription
fileTThe file or folder.
newPathstringVault absolute path for the new copy.

Returns: Promise<T>

Since: 1.8.7