Deno.DirEntry
Information about a directory entry returned from Deno.readDir and Deno.readDirSync.
interface DirEntry {isDirectory: boolean;isFile: boolean;isSymlink: boolean;name: string;}
Properties
isDirectory: boolean
True if this is info for a regular directory. Mutually exclusive to DirEntry.isFile and DirEntry.isSymlink.
isFile: boolean
True if this is info for a regular file. Mutually exclusive to DirEntry.isDirectory and DirEntry.isSymlink.
isSymlink: boolean
True if this is info for a symlink. Mutually exclusive to DirEntry.isFile and DirEntry.isDirectory.
name: string
The file name of the entry. It is just the entity name and does not include the full path.
© 2018–2022 the Deno authors
https://doc.deno.land/deno/stable/~/Deno.DirEntry