FileSystemEntity class abstract

Implemented types
Implementers

Constructors

FileSystemEntity(Uri uri)

Properties

absolute FileSystemEntity
A FileSystemEntity whose path is the absolute path of path.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isAbsolute bool
Whether this object's path is absolute.
no setteroverride
parent Directory
The parent directory of this entity.
no setteroverride
path String
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uri Uri
A Uri representing the file system entity's location.
final

Methods

create({bool recursive = false}) Future<FileSystemEntity>
createSync({bool recursive = false}) FileSystemEntity
delete({bool recursive = false}) Future<FileSystemEntity>
Deletes this FileSystemEntity.
override
deleteSync({bool recursive = false}) FileSystemEntity
Synchronously deletes this FileSystemEntity.
override
exists() Future<bool>
Checks whether the file system entity with this path exists.
override
existsSync() bool
Synchronously checks whether the file system entity with this path exists.
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.
override
renameSync(String newPath) FileSystemEntity
Synchronously renames this file system entity.
override
Resolves the path of a file system object relative to the current working directory.
override
resolveSymbolicLinksSync() String
Resolves the path of a file system object relative to the current working directory.
override
stat() Future<FileStat>
Calls the operating system's stat() function on path.
override
statSync() FileStat
Synchronously calls the operating system's stat() function on path.
override
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.
override

Operators

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

Static Properties

isWatchSupported → dynamic
no setter

Static Methods

isDirectory(String path) Future<bool>
Whether path refers to a directory.
override
isDirectorySync(String path) bool
Synchronously checks whether path refers to a directory.
override
isFile(String path) Future<bool>
Whether path refers to a file.
override
isFileSync(String path) bool
Synchronously checks whether path refers to a file.
override
Whether path refers to a link.
override
isLinkSync(String path) bool
Synchronously checks whether path refers to a link.
override
typeSync(String path) FileSystemEntityType
Synchronously finds the type of file system object that a path points to.
override