happy-opfs
    Preparing search index...

    Function createFileSync

    • Synchronous version of createFile. Creates a new empty file at the specified path.

      Parameters

      • filePath: string

        The absolute path of the file to create.

      Returns VoidIOResult

      A VoidIOResult indicating success or failure.

      createFile for the async version.

      1.7.0

      createFileSync('/path/to/file.txt')
      .inspect(() => console.log('File created'));