Dir class

Represents a directory in the file system.

It records the path, listing policy, index file, and file system used to serve the directory.

Constructors

Dir(String path, {bool listDirectory = false, String indexFile = 'index.html', FileSystem? fileSystem})
Creates a directory description for path.

Properties

fileSystem → FileSystem
The file system to use.
final
hashCode → int
The hash code for this object.
no setterinherited
indexFile → String
File served when a request targets a directory.
final
listDirectory → bool
Whether to list the contents of the directory.
final
path → String
The path to the directory.
final
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