getAndCheckIfLibsDirectoryExists method
Ensures the specified libsFolderName directory exists and returns it.
If the directory does not exist, logs an error message via LoggerHelper.
Returns the Directory representing the lib/ folder.
Implementation
Directory getAndCheckIfLibsDirectoryExists(String libsFolderName) {
final projectDirectory = Directory(libsFolderName);
if (!projectDirectory.existsSync()) {
LoggerHelper.printError('Folder not found: $libsFolderName');
}
return projectDirectory;
}