createProjectStructure function
Implementation
Future<bool> createProjectStructure(
String path, String name, PostgreSQLConnection connection) async {
print('Creating project structure. . .');
try {
var projectpath = '$path/$name';
return await createFold(projectpath, 'lib') &&
await createFold(projectpath, 'bin') &&
await createFold(projectpath, 'protos') &&
await createFold(projectpath, 'test') &&
await createFold('$projectpath/lib', 'services') &&
await createFold('$projectpath/lib', 'src') &&
writeFiles(projectpath, name, connection);
} on Exception catch (e) {
print(e.toString());
return false;
}
}