Deno.stat
Возвращает Deno.FileInfo для указанного path. Всегда следует за символическими ссылками.
import { assert } from "https://deno.land/std/testing/asserts.ts";
const fileInfo = await Deno.stat("hello.txt");
assert(fileInfo.isFile);
Требует разрешения allow-read.
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.stat