ScratchSpace class

An on-disk temporary environment for running executables that don't have a standard Dart library API.

Constructors

ScratchSpace()
factory

Properties

exists bool
Whether or not this scratch space still exists.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
packagesDir Directory
The packages directory under the temp directory.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tempDir Directory
The temp directory at the root of this ScratchSpace.
final

Methods

copyOutput(AssetId id, AssetWriter writer, {bool requireContent: false}) Future
Copies id from the tmp dir and writes it back using the writer. [...]
delete() Future
Deletes the temp directory for this environment. [...]
ensureAssets(Iterable<AssetId> assetIds, AssetReader reader) Future
Copies assetIds to tempDir if they don't exist, using reader to read assets and mark dependencies. [...]
fileFor(AssetId id) File
Returns the actual File in this environment corresponding to id. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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