FileSystem class abstract

Abstract File system.

Implementers
Available extensions

Constructors

FileSystem()

Properties

currentDirectory Directory
Creates a directory object pointing to the current working directory.
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
fs_shim specific. Name of the file system.
no setter
path → Context
Get the path context for patch operation
no setter
pathContext → Context
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Returns true if file links are supported.
no setter
Returns true if links are supported.
no setter
supportsRandomAccess bool
Returns true if it supports random access (open)
no setter

Methods

directory(String path) Directory
Creates a Directory object. If path is a relative path, it will be interpreted relative to the current working directory (see Directory.current), when used.
file(String path) File
Creates a File object.
isDirectory(String? path) Future<bool>
Checks if type(path) returns FileSystemEntityType.DIRECTORY.
isFile(String? path) Future<bool>
Checks if type(path) returns FileSystemEntityType.FILE.
Checks if type(path) returns FileSystemEntityType.Link.
Creates a Link object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
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.

Operators

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