DirEntry class

Information about a directory entry returned from {@linkcode Deno.readDir} and {@linkcode Deno.readDirSync}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

DirEntry({String? name, bool? isFile, bool? isDirectory, bool? isSymlink})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
isDirectory bool

Available on DirEntry, provided by the DirEntry$Typings extension

True if this is info for a regular directory. Mutually exclusive to DirEntry.isFile and DirEntry.isSymlink.
getter/setter pair
isFile bool

Available on DirEntry, provided by the DirEntry$Typings extension

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

Available on DirEntry, provided by the DirEntry$Typings extension

True if this is info for a symlink. Mutually exclusive to DirEntry.isFile and DirEntry.isDirectory.
getter/setter pair
name String

Available on DirEntry, provided by the DirEntry$Typings extension

The file name of the entry. It is just the entity name and does not include the full path.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited