FsSnapshotExporter class abstract interface

A filesystem that can export a point-in-time deep copy of its whole tree in ONE synchronous pass.

Unlike an async listDir/readBinaryFile walk, a synchronous copy has no event-loop yield points, so a concurrent write can never interleave mid-copy and tear the snapshot. Persistence layers that serialize the tree (the web sandbox's PersistentWebExecutionEnv) must prefer this over walking whenever the delegate implements it.

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

exportSnapshot() → MemoryFsSnapshot
Deep-copies the whole tree below FileSystem.cwd synchronously. Traversal order matches a listDir walk exactly (depth-first, children sorted by name), so an export of a quiescent tree is identical to an async walk of it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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