writeFile method
write content to path (relative to the app folder) only when the
file is not there. Returns true when the file was made.
Implementation
bool writeFile(String path, String content) {
File file = _file(path);
if (file.existsSync()) {
note('skipped $path (already there)');
return false;
}
file.createSync(recursive: true);
file.writeAsStringSync(content);
note('created $path');
return true;
}