seedFile method

void seedFile(
  1. String path,
  2. List<int> bytes
)

Writes bytes to the file at path, creating its missing parent directories, replacing whatever sits there.

Implementation

void seedFile(String path, List<int> bytes) {
  final String normalized = _normalize(path);
  _seedAncestorsOf(normalized);
  _directories.remove(normalized);
  _links.remove(normalized);
  _files[normalized] = Uint8List.fromList(bytes);
}