Deno.fstatSync

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);
function fstatSync(rid: number): FileInfo;
§
fstatSync(rid: number): FileInfo
[src]

§Parameters

§
rid: number
[src]