@ac-essentials/misc-util
    Preparing search index...

    Function fileContentEqual

    • Compares the content of a file with the provided data.

      Parameters

      • path: PathLike

        The path to the file to compare.

      • data: Buffer

        The data to compare with the file content.

      • Optionaloptions: FileContentEqualOptions

        Options for the file comparison.

      Returns Promise<boolean>

      True if the file content is equal to the provided data, false otherwise.