validateAppPathDoesNotExist static method
Validates that an app module does not already exist at the specified path.
This method checks if a directory already exists at the intended location for the new app module and throws an error if it does.
Parameters:
pathApps: The path where the new app module would be created
Throws:
- Exception if the directory already exists
Implementation
static void validateAppPathDoesNotExist(String pathApps) {
if (Directory(pathApps).existsSync()) {
StatusHelper.failed('App module already exists at $pathApps');
}
}