DirectoryMixin mixin
Directory mixin.
- Implemented types
- Available extensions
Properties
- absolute → Directory
-
Returns a Directory instance whose path is the absolute path to
this
.no setteroverride - fs → FileSystem
-
fs_shim specific
holds a reference to the file system
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAbsolute → bool
-
Returns a bool indicating whether this object's path is absolute.
no setterinherited
- parent → Directory
-
The directory containing
this
. Ifthis
is a root directory, returnsthis
.no setterinherited - path → String
-
Get the path of the file.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
create(
{bool recursive = false}) → Future< Directory> -
Creates the directory with this name.
override
-
delete(
{bool recursive = false}) → Future< FileSystemEntity> -
Deletes this FileSystemEntity.
inherited
-
exists(
) → Future< bool> -
Checks whether the file system entity with this path exists. Returns
a
`Future<bool>`
that completes with the result.inherited -
list(
{bool recursive = false, bool followLinks = true}) → Stream< 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< FileSystemEntity> -
Renames this file system entity. Returns a
Future<FileSystemEntity>
that completes with a FileSystemEntity instance for the renamed file system entity.inherited -
stat(
) → Future< FileStat> -
Calls the operating system's stat() function on the path of this
FileSystemEntity. Identical to
FileStat.stat(this.path)
.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited