happy-opfs
    Preparing search index...

    Function existsSync

    • Synchronous version of exists. Checks whether a file or directory exists at the specified path.

      Parameters

      • path: string

        The absolute path to check.

      • Optionaloptions: ExistsOptions

        Optional existence options (e.g., isDirectory, isFile).

      Returns IOResult<boolean>

      An IOResult containing true if exists, false otherwise.

      exists for the async version.

      1.1.0

      existsSync('/path/to/file')
      .inspect(exists => exists && console.log('File exists'));