public boolean isValidDirectoryPath(String directoryPath) { String filteredPath = directoryPath; if (name == Name.WINDOWS) { if (!directoryPath.matches("^([a-zA-Z]:|\\\\).*")) { return false; } filteredPath = directoryPath.substring(2, directoryPath.length()); } return isValidDirectorySyntax(filteredPath); } /**
/** * Validate that groupName is a valid directory path * * @param groupName * @return */ public String verifyProgramGroup(String groupName) { if(!platform.isValidDirectorySyntax(groupName)) { return installData.getMessages().get("ShortcutPanel.group.error"); } return ""; }