Write a file (creates parent dirs).
final Future<bool> Function(String path, String content) writeFileSafe;