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.

    • Optionaloptions: StatFsOptions & {
          bigint?: false;
      }

    Returns fs.StatsFs

  • Parameters

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

    Returns fs.BigIntStatsFs

  • Parameters

    • path: PathLike
    • Optionaloptions: StatFsOptions

    Returns fs.StatsFs | fs.BigIntStatsFs