writeDocument method

Future<OkfWriteResult> writeDocument(
  1. String rootPath,
  2. String relativePath,
  3. OkfDocument document, {
  4. bool checkOnly = false,
})

Serializes and writes document beneath rootPath.

Implementation

Future<OkfWriteResult> writeDocument(
  String rootPath,
  String relativePath,
  OkfDocument document, {
  bool checkOnly = false,
}) => writeAll(rootPath, <String, String>{
  relativePath: document.serialize(),
}, checkOnly: checkOnly);