ChannelContentSource class

An OmnyDrive ContentSource backed by a node-side path reached over a drive session.

Each operation becomes a DriveRpcClient call: the node executes it against its local filesystem and streams back the result. This lets OmnyDrive's directory synchronizer treat a remote node path exactly like a local one, with no transport-specific logic in the engine.

Constructors

ChannelContentSource(DriveRpcClient _rpc, {bool isWritable = false})
Wraps rpc; isWritable reflects the mount's access mode (the node also enforces it).

Properties

hashCode int
The hash code for this object.
no setterinherited
isWritable bool
Whether this source permits writes.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(String relativePath) Future<void>
Deletes the file at relativePath if it exists.
manifest() Future<FileManifest>
Builds the current FileManifest for the source tree.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readBytes(String relativePath) Future<List<int>>
Reads the bytes of the file at relativePath.
toString() String
A string representation of this object.
inherited
writeBytes(String relativePath, List<int> bytes) Future<void>
Writes bytes to relativePath, creating parents as needed. Throws if the source is read-only.

Operators

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