ensureDir method
Creates path's parent directory if needed (no-op in dry-run).
Implementation
void ensureDir(String path) {
if (dryRun) return;
Directory(path).createSync(recursive: true);
}
Creates path's parent directory if needed (no-op in dry-run).
void ensureDir(String path) {
if (dryRun) return;
Directory(path).createSync(recursive: true);
}