happy-opfs
    Preparing search index...

    Function readBlobFileSync

    • Synchronous version of readBlobFile. Reads a file as a File object.

      Parameters

      • filePath: string

        The absolute path of the file to read.

      Returns IOResult<File>

      An IOResult containing a File object.

      readBlobFile for the async version.

      1.1.0

      readBlobFileSync('/path/to/file.txt')
      .inspect(file => console.log(file.name, file.size, file.type));