FsAdapter class abstract

Filesystem-family adapter — the fs.* verbs.

Inheritance

Constructors

FsAdapter()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Namespace-local instance id (e.g. workspace, main_db).
no setterinherited
kind String
Backend family — fs | sql | nosql | ….
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Release resources / close connections.
inherited
edit(String path, {required String oldString, required String newString, bool all = false}) Future<int>
Replace oldString with newString; returns the number of replacements (0 when not found, so callers can detect a no-op).
glob(String pattern) Future<List<String>>
list(String path, {bool recursive = false}) Future<List<FsEntry>>
mkdir(String path, {bool recursive = true}) Future<void>
move(String from, String to) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() Future<void>
Open / connect. No-op for stateless backends.
inherited
readBytes(String path) Future<List<int>>
readText(String path) Future<String>
remove(String path, {bool recursive = false}) Future<void>
stat(String path) Future<FsStat>
toString() String
A string representation of this object.
inherited
write(String path, {String? text, List<int>? bytes, bool createParents = true}) Future<void>

Operators

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