Function statfsSync

  • Synchronous statfs(2). Returns information about the mounted file system which contains path. In case of an error, the err.code will be one of Common System Errors.

    Parameters

    • path: PathLike

      A path to an existing file or directory on the file system to be queried.

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

    Returns fs.StatsFs

  • Parameters

    • path: PathLike
    • options: StatFsOptions & {
          bigint: true;
      }

    Returns fs.BigIntStatsFs

  • Parameters

    • path: PathLike
    • Optional options: StatFsOptions

    Returns fs.StatsFs | fs.BigIntStatsFs