MetadataCache โ€บ fileToLinktext

MetadataCache.fileToLinktext() method

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): string;

Parameters

ParameterTypeDescription
fileTFile
sourcePathstring
omitMdExtensionboolean(Optional)

Returns:

string