ForwardingDirectory<T extends Directory> mixin

A directory that forwards all methods and properties to a delegate.

Implemented types

Properties

absolute → T
A FileSystemEntity whose path is the absolute path of path.
no setterinherited
basename String
Gets the part of this entity's path after the last separator.
no setterinherited
delegate Directory
The entity to which this entity will forward all methods and properties.
no setterinherited
dirname String
Gets the part of this entity's path before the last separator.
no setterinherited
fileSystem FileSystem
Returns the file system responsible for this entity.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAbsolute bool
Whether this object's path is absolute.
no setterinherited
parent Directory
The parent directory of this entity.
no setterinherited
path String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
A Uri representing the file system entity's location.
no setterinherited

Methods

childDirectory(String basename) Directory
Returns a reference to a Directory that exists as a child of this directory and has the specified basename.
inherited
childFile(String basename) File
Returns a reference to a File that exists as a child of this directory and has the specified basename.
inherited
Returns a reference to a Link that exists as a child of this directory and has the specified basename.
inherited
create({bool recursive = false}) Future<Directory>
Creates the directory if it doesn't exist.
override
createSync({bool recursive = false}) → void
Synchronously creates the directory if it doesn't exist.
override
createTemp([String? prefix]) Future<Directory>
Creates a temporary directory in this directory.
override
createTempSync([String? prefix]) Directory
Synchronously creates a temporary directory in this directory.
override
delete({bool recursive = false}) Future<T>
Deletes this FileSystemEntity.
inherited
deleteSync({bool recursive = false}) → void
Synchronously deletes this FileSystemEntity.
inherited
exists() Future<bool>
Checks whether the file system entity with this path exists.
inherited
existsSync() bool
Synchronously checks whether the file system entity with this path exists.
inherited
list({bool recursive = false, bool followLinks = true}) Stream<FileSystemEntity>
Lists the sub-directories and files of this Directory.
override
listSync({bool recursive = false, bool followLinks = true}) List<FileSystemEntity>
Lists the sub-directories and files of this Directory. Optionally recurses into sub-directories.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rename(String newPath) Future<T>
Renames this file system entity.
inherited
renameSync(String newPath) → T
Synchronously renames this file system entity.
inherited
Resolves the path of a file system object relative to the current working directory.
inherited
resolveSymbolicLinksSync() String
Resolves the path of a file system object relative to the current working directory.
inherited
stat() Future<FileStat>
Calls the operating system's stat() function on path.
inherited
statSync() FileStat
Synchronously calls the operating system's stat() function on path.
inherited
toString() String
A string representation of this object.
inherited
watch({int events = FileSystemEvent.all, bool recursive = false}) Stream<FileSystemEvent>
Start watching the FileSystemEntity for changes.
inherited
wrap(Directory delegate) → T
Creates a new entity with the same file system and same type as this entity but backed by the specified delegate.
override
wrapDirectory(Directory delegate) Directory
Creates a new directory with the same file system as this entity and backed by the specified delegate.
inherited
wrapFile(File delegate) File
Creates a new file with the same file system as this entity and backed by the specified delegate.
inherited
Creates a new link with the same file system as this entity and backed by the specified delegate.
inherited

Operators

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