import { deno } from "https://deno.land/x/denoversion@v1.0.2/lib/lib.deno_runtime.d.ts";
const { stat } = deno;
Queries the file system for information on the path provided. stat
Will
always follow symlinks.
import { stat } from "deno";
const fileInfo = await stat("hello.txt");
assert(fileInfo.isFile());