FileManager
Manage the creation, deletion and renaming of files from the UI.
#
Constructorconstructor();
#
Methods#
getNewFileParentgetNewFileParent(sourcePath: string): TFolder;
Gets the folder that new files should be saved to, given the user's preferences.
#
renameFilerenameFile(file: TAbstractFile, newPath: string): Promise<void>;
Rename or move a file safely, and update all links to it depending on the user's preferences.
#
generateMarkdownLinkgenerateMarkdownLink(file: TFile, sourcePath: string, subpath?: string, alias?: string): string;
Generate a markdown link based on the user's preferences.