<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[`Vault`](Vault) › [`copy`](Vault/copy)
## Vault.copy() method
Create a copy of a file or folder.
**Signature:**
```typescript
copy<T extends TAbstractFile>(file: T, newPath: string): Promise<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| <code>file</code> | <code>T</code> | The file or folder. |
| <code>newPath</code> | <code>string</code> | Vault absolute path for the new copy. |
**Returns:**
`Promise<T>`
Not found
This page does not exist