stat method
Resolves to a {@linkcode Deno.FileInfo} for the file.
import { assert } from "https://deno.land/std/testing/asserts.ts";
const file = await Deno.open("hello.txt");
const fileInfo = await file.stat();
assert(fileInfo.isFile);
file.close();
Implementation
_i2.Future<_i4.FileInfo> stat() => _i3.promiseToFuture(_i3.callMethod(
this,
'stat',
[],
));