DirEntry

import { DirEntry } from "jsr:@ende/fs/unstable-types";

interface ยท experimental

interface DirEntry

Information about a directory entry returned from readDir and readDirSync.

Properties

name

name: string

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

isFile

isFile: boolean

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

isDirectory

isDirectory: boolean

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

isSymlink: boolean

True if this is info for a symlink. Mutually exclusive to FileInfo.isFile and FileInfo.isDirectory.

Source