W3cubDocs

/Deno

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

Parameters

rid: number

Return Type

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.fstatSync