copySafe
Copies a file or folder safely in the vault. A folder is copied with its whole subtree, empty subfolders included.
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 or folder. |
Returns: Promise<string> — A Promise that resolves to the new path of the copy.
Links to this page: