fstat method

Future<FileInfo> fstat(
  1. num rid
)

Returns a Deno.FileInfo for the given file stream.

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

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

Implementation

_i2.Future<_i4.FileInfo> fstat(_i2.num rid) =>
    _i3.promiseToFuture(_i3.callMethod(
      this,
      'fstat',
      [rid],
    ));