Skip to content

FileSystemAdapter.getFullPath method

FileSystemAdapter › getFullPath

Official

Gets the full path for a file.

Signature:

getFullPath(normalizedPath: string): string

Parameters:

ParameterTypeDescription
normalizedPathstringThe path of the file in the vault.

Returns: string

Example:

console.log(adapter.getFullPath('foo/bar.md')); // C:\Users\John\Documents\ObsidianVault\foo\bar.md