fstatSync method

FileInfo fstatSync(
  1. num rid
)

Synchronously returns a {@linkcode Deno.FileInfo} for the given file stream.

import { assert } from "https://deno.land/std/testing/asserts.ts";

const file = Deno.openSync("file.txt", { read: true });
const fileInfo = Deno.fstatSync(file.rid);
assert(fileInfo.isFile);

Implementation

_i4.FileInfo fstatSync(_i2.num rid) => _i3.callMethod(
      this,
      'fstatSync',
      [rid],
    );