Skip to content

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:

ParameterTypeDescription
paramsCopySafeParamsThe parameters for copying the file.

Returns: Promise<string> — A Promise that resolves to the new path of the copied file.


Links to this page: