Minimal directory abstraction for the local engine.
The engine owns exactly three kinds of files: the WAL, one or two manifest slots, and immutable segments. It needs to create, list, rename and delete them — nothing else.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closeSync(
) → void - Releases resources owned by the directory.
-
deleteSync(
String name) → void - Deletes the named file if it exists.
-
existsSync(
String name) → bool - Whether a file with that name exists.
-
listSync(
) → List< String> - Names of all files, sorted.
-
mapSync(
String name) → MappedFile - Maps a whole file read-only.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openSync(
String name, {bool create = true}) → SyncStorageFile - Opens (and by default creates) the named file.
-
renameSync(
String from, String to) → void -
Renames
fromtoto, replacingto. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited