copySafe
Copies a file safely in the vault.
Import:
import { copySafe } from 'obsidian-dev-utils/obsidian/vault';Signature:
function copySafe(params: CopySafeParams): Promise<string>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | CopySafeParams | The parameters for copying the file. |
Returns: Promise<string> — A Promise that resolves to the new path of the copied file.
Links to this page: