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:

Parameter Type Description
path string The desired path.
extension string The file extension.

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