method Deno.FsFile.prototype.statSync FsFile.prototype.statSync(): FileInfo Synchronously returns a [`Deno.FileInfo`](../././~/Deno.FileInfo) for the file. ```ts import { assert } from "jsr:@std/assert"; using file = Deno.openSync("hello.txt") const fileInfo = file.statSync(); assert(fileInfo.isFile); ``` Return Type FileInfo