Skip to content

FileManager.mergeFile method

FileManager › mergeFile

Unofficial

Merge two files.

Signature:

mergeFile(file: TFile, otherFile: TFile, override: string, atStart: boolean): Promise<void>

Parameters:

Parameter Type Description
file TFile File to merge to.
otherFile TFile File to merge from.
override string If not empty, will override the contents of the file with this string.
atStart boolean Whether to insert text at the start or end of the file.

Returns: Promise<void>A promise that resolves when the files are merged.