Skip to content

MetadataCache.fileToLinktext method

MetadataCache › fileToLinktext

Official

Generates a linktext for a file.

If file name is unique, use the filename. If not unique, use full path.

Signature:

fileToLinktext(file: TFile, sourcePath: string, omitMdExtension?: boolean | undefined): string

Parameters:

Parameter Type Description
file TFile
sourcePath string
omitMdExtension? boolean | undefined *(Optional)*

Returns: string