Synchronously returns a 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);
© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.fstatSync