• Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • Optional options: undefined

    Returns Stats

  • Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • Optional options: StatSyncOptions & {
          bigint?: false;
          throwIfNoEntry: false;
      }

    Returns undefined | Stats

  • Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • options: StatSyncOptions & {
          bigint: true;
          throwIfNoEntry: false;
      }

    Returns undefined | BigIntStats

  • Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • Optional options: StatSyncOptions & {
          bigint?: false;
      }

    Returns Stats

  • Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • options: StatSyncOptions & {
          bigint: true;
      }

    Returns BigIntStats

  • Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • options: StatSyncOptions & {
          bigint: boolean;
          throwIfNoEntry?: false;
      }

    Returns Stats | BigIntStats

  • Synchronous stat(2) - Get file status.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • Optional options: StatSyncOptions

    Returns undefined | Stats | BigIntStats