OkfBundleWriter class final

Writes files beneath an explicit OKF bundle root.

Each file uses a temporary sibling followed by the strongest replacement operation available on the platform. A multi-file call is not transactional, and replacement does not promise to preserve filesystem metadata such as modes, ACLs, or extended attributes. Existing symbolic links in the destination path are rejected. These checks assume the bundle is not being concurrently replaced by an adversarial process.

Constructors

OkfBundleWriter()
Creates a bundle writer.
const

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
writeAll(String rootPath, Map<String, String> files, {bool checkOnly = false}) Future<OkfWriteResult>
Writes all files, keyed by bundle-relative path.
writeDocument(String rootPath, String relativePath, OkfDocument document, {bool checkOnly = false}) Future<OkfWriteResult>
Serializes and writes document beneath rootPath.

Operators

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