createCoreStructure function
Implementation
void createCoreStructure(String corePath) {
try {
Directory(corePath).createSync(recursive: true);
for (var folder in coreFolders) {
final folderPath = path.join(corePath, folder);
print('Creating folder: $folderPath');
Directory(folderPath).createSync(recursive: true);
}
} catch (e) {
print('Error creating core structure: $e');
exit(1);
}
}