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 "fs".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: "fs".StatSyncOptions & { bigint?: false; throwIfNoEntry: false }

    Returns "fs".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: "fs".StatSyncOptions & { bigint: true; throwIfNoEntry: false }

    Returns "fs".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: "fs".StatSyncOptions & { bigint?: false }

    Returns "fs".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: "fs".StatSyncOptions & { bigint: true }

    Returns "fs".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: "fs".StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }

    Returns "fs".Stats | "fs".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: "fs".StatSyncOptions

    Returns "fs".Stats | "fs".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: undefined

    Returns "fs".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: "fs".StatSyncOptions & { bigint?: false; throwIfNoEntry: false }

    Returns "fs".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: "fs".StatSyncOptions & { bigint: true; throwIfNoEntry: false }

    Returns "fs".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: "fs".StatSyncOptions & { bigint?: false }

    Returns "fs".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: "fs".StatSyncOptions & { bigint: true }

    Returns "fs".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: "fs".StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }

    Returns "fs".Stats | "fs".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: "fs".StatSyncOptions

    Returns "fs".Stats | "fs".BigIntStats

Generated using TypeDoc