Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
method Deno.FsFile.prototype.stat

Resolves to a Deno.FileInfo for the file.

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

using file = await Deno.open("hello.txt");
const fileInfo = await file.stat();
assert(fileInfo.isFile);