genDir function
Implementation
Directory genDir(String path) {
final dir = Directory(path);
if (dir.existsSync()) {
print('directory ${path} exists already');
} else {
dir.createSync();
print('directory created: ${path}');
}
return dir;
}