IWorkFileSystem class abstract interface

Interface for low-level file system operations.

This interface abstracts the underlying storage mechanism, allowing different implementations for different platforms (file system, localStorage, etc.).

Implementations of this interface are used by ClientWorkDb to persist data.

Timestamp Behavior

Different implementations handle timestamps differently:

Implementation Timestamp Behavior
MemoryWorkDb Maintains original creation time, preserved on updates
IoWorkDb Uses file system modification time
WebWorkDb No timestamp support (returns null)

When relying on timestamps, be aware of these differences and consider whether your use case requires consistent timestamp handling across platforms.

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

deleteFile(String path) → Future<void>
Deletes a file at the specified path.
deleteFolder(String folderPath) → Future<void>
Deletes a folder and all its contents recursively.
exist(String path) → Future<bool>
Checks if a file or folder exists at the specified path.
getFile(String path) → Future<ItemOutput>
Reads an item from the specified path.
getPath() → String
ls(String path) → Future<List<String>>
Lists all files/items in a directory.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renameFile(String oldPath, String newPath) → Future<void>
Renames/moves a file from one path to another.
toString() → String
A string representation of this object.
inherited
writeFile(String path, Item input) → Future<void>
Writes an item to the specified path.

Operators

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