FileSystemEntity class abstract

FileSystem entity.

Implementers

Constructors

FileSystemEntity()

Properties

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

Methods

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

Operators

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

Static Methods

isDirectory(String path) Future<bool>
Checks if type(path) returns FileSystemEntityType.FILE.
isFile(String path) Future<bool>
Checks if type(path) returns FileSystemEntityType.FILE.
Checks if type(path, followLinks: false) returns FileSystemEntityType.LINK.
type(String path, {bool followLinks = true}) Future<FileSystemEntityType>
Finds the type of file system object that a path points to. Returns a `Future<FileSystemEntityType>` that completes with the result.