• Retrieves the fs.Stats for the file descriptor.

    See the POSIX fstat(2) documentation for more detail.

    Since

    v0.1.95

    Parameters

    • fd: number
    • Optional options: StatOptions & {
          bigint?: false;
      }

    Returns Stats

  • Parameters

    • fd: number
    • options: StatOptions & {
          bigint: true;
      }

    Returns BigIntStats

  • Parameters

    Returns Stats | BigIntStats