writeOn method

void writeOn(
  1. StringSink sink
)

Write a representation of the file system on the given sink.

Implementation

void writeOn(StringSink sink) {
  List<String> paths = _pathToData.keys.toList();
  paths.sort();
  paths.forEach(sink.writeln);
}