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

x/ayonli_jsext/lib.deno.d.ts>Deno.DirEntry

A JavaScript extension package for building strong and modern applications.
Latest
interface Deno.DirEntry
import { type Deno } from "https://deno.land/x/ayonli_jsext@v0.9.72/lib.deno.d.ts";
const { DirEntry } = Deno;

Information about a directory entry returned from Deno.readDir and Deno.readDirSync.

Properties

name: string

The file name of the entry. It is just the entity name and does not include the full path.

isFile: boolean

True if this is info for a regular file. Mutually exclusive to DirEntry.isDirectory and DirEntry.isSymlink.

isDirectory: boolean

True if this is info for a regular directory. Mutually exclusive to DirEntry.isFile and DirEntry.isSymlink.