Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/fs/utils.ts>getFileInfoType

A modern runtime for JavaScript and TypeScript.
Go to Latest
function getFileInfoType
import { getFileInfoType } from "https://deno.land/x/deno@v0.28.0/std/fs/utils.ts";

Get a human readable file type string.

Parameters

fileInfo: Deno.FileInfo

A FileInfo describes a file and is returned by stat, lstat

Returns

PathType | undefined