fileContentEqual
fileContentEqual(
path,data,options?):Promise<boolean>
Defined in: packages/node/src/fs/file-content-equal.ts:28
Compares the content of a file with the provided data.
Parameters
Section titled “Parameters”PathLike
The path to the file to compare.
Buffer
The data to compare with the file content.
options?
Section titled “options?”Options for the file comparison.
Returns
Section titled “Returns”Promise<boolean>
True if the file content is equal to the provided data, false otherwise.