Function statSync

  • 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 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 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 Stats | BigIntStats

Generated using TypeDoc