method Deno.FsFile.prototype.stat FsFile.prototype.stat(): Promise<FileInfo> Resolves to a [`Deno.FileInfo`](../././~/Deno.FileInfo) for the file. ```ts import { assert } from "jsr:@std/assert"; using file = await Deno.open("hello.txt"); const fileInfo = await file.stat(); assert(fileInfo.isFile); ``` Return Type Promise<FileInfo>