FileSystemEntity class

The common super class for File, Directory, and Link objects.

Implemented types
Implementers

Constructors

FileSystemEntity()

Properties

basename String
Gets the part of this entity's path after the last separator. [...]
read-only
dirname String
Gets the part of this entity's path before the last separator. [...]
read-only
fileSystem FileSystem
Returns the file system responsible for this entity.
read-only
parent Directory
The directory containing this.
read-only, override
absolute FileSystemEntity
Returns a FileSystemEntity whose path is the absolute path to this. [...]
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isAbsolute bool
Returns a bool indicating whether this object's path is absolute. [...]
read-only, inherited
path String
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
uri Uri
Returns a Uri representing the file system entity's location. [...]
read-only, inherited

Methods

delete({bool recursive: false }) Future<FileSystemEntity>
Deletes this FileSystemEntity. [...]
override
deleteSync({bool recursive: false }) → void
Synchronously 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
existsSync() bool
Synchronously checks whether the file system entity with this path exists. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
rename(String newPath) Future<FileSystemEntity>
Renames this file system entity. [...]
inherited
renameSync(String newPath) FileSystemEntity
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 the path of this FileSystemEntity. [...]
inherited
statSync() FileStat
Synchronously calls the operating system's stat() function on the path of this FileSystemEntity. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
watch({int events: FileSystemEvent.all, bool recursive: false }) Stream<FileSystemEvent>
Start watching the FileSystemEntity for changes. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited