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

std/fs/_util.ts>getFileInfoType

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function getFileInfoType
import { getFileInfoType } from "https://deno.land/std@0.153.0/fs/_util.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