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:

ParameterTypeDescription
fileTFileFile to merge to.
otherFileTFileFile to merge from.
overridestringIf not empty, will override the contents of the file with this string.
atStartbooleanWhether to insert text at the start or end of the file.

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