FileSystem class abstract
A virtual file system implementation for web-based sqlite3
databases.
- Implementers
Constructors
- FileSystem.inMemory()
-
Creates an in-memory file system that deletes data when the tab is
closed.
factory
Properties
Methods
-
clear(
) → void - Deletes all files stored in this file system.
-
createFile(
String path, {bool errorIfNotExists = false, bool errorIfAlreadyExists = false}) → void -
Creates an empty file at
path
. -
createTemporaryFile(
) → String - Creates a temporary file with a unique name.
-
deleteFile(
String path) → void -
Deletes a file at
path
if it exists, throwing a FileSystemException otherwise. -
exists(
String path) → bool -
Whether a file at
path
exists. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
String path, Uint8List target, int offset) → int -
Reads a chunk of the file at
path
and offsetoffset
into thetarget
buffer. -
sizeOfFile(
String path) → int -
Returns the size of a file at
path
if it exists. -
toString(
) → String -
A string representation of this object.
inherited
-
truncateFile(
String path, int length) → void -
Sets the size of the file at
path
tolength
. -
write(
String path, Uint8List bytes, int offset) → void -
Writes a chunk from
bytes
into the file at pathpath
and offsetoffset
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited