MountStore class

On-disk registry of the client's OmnyDrive mounts.

Persisted to <home>/.omnyshell/mounts.json (file mode 600), mirroring the credential store. Keyed by mount id.

Constructors

MountStore({Map<String, MountRecord>? mounts, String? home})
Creates a store over mounts.

Properties

hashCode int
The hash code for this object.
no setterinherited
home String?
The home base this store reads/writes under (null uses the default OMNYSHELL_HOME/HOME resolution). Remembered so save targets the same location load used.
final
mounts Map<String, MountRecord>
Mounts keyed by id.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists the store (dir mode 700, file mode 600 on POSIX).
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

load({String? home}) Future<MountStore>
Loads the store, returning an empty one when no file exists yet.
path({String? home}) String
The mounts file path under home.