Skip to content

Vault.getAvailablePath method

Vault › getAvailablePath

Unofficial

Get path for file that does not conflict with other existing files

Signature:

getAvailablePath(path: string, extension: string): string

Parameters:

ParameterTypeDescription
pathstringThe desired path.
extensionstringThe file extension.

Returns: stringAn available path that does not conflict with existing files.