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
| Parameter | Type | Description |
|---|---|---|
file | TFile | |
sourcePath | string | |
omitMdExtension | boolean | (Optional) |
Returns:
string