Skip to content

FileSystemAdapter.getFilePath method

FileSystemAdapter › getFilePath

Official

Returns the file:// path of this file.

Signature:

getFilePath(normalizedPath: string): string

Parameters:

ParameterTypeDescription
normalizedPathstringThe path of the file.

Returns: string

Since: 0.14.3

Example:

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