FileSystemEntityMixin mixin

File system entity mixin.

Implemented types

Properties

fs FileSystem
fs_shim specific holds a reference to the file system
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isAbsolute bool
Returns a bool indicating whether this object's path is absolute.
no setteroverride
parent Directory
The directory containing this. If this is a root directory, returns this.
no setteroverride
path String
Get the path of the file.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete({bool recursive = false}) Future<FileSystemEntity>
Deletes this FileSystemEntity.
override
exists() Future<bool>
Checks whether the file system entity with this path exists. Returns a Future<bool> that completes with the result.
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.
override
stat() Future<FileStat>
Calls the operating system's stat() function on the path of this FileSystemEntity. Identical to FileStat.stat(this.path).
override
toString() String
A string representation of this object.
inherited

Operators

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