productPath static method
Implementation
static String productPath(String outPath, String inputFilePath) {
String newPath;
if (outPath.endsWith('/') == false &&
inputFilePath.startsWith('/') == false) {
newPath = '$outPath/$inputFilePath';
} else if (outPath.endsWith('/') == true &&
inputFilePath.startsWith('/') == true) {
newPath = (outPath + inputFilePath).replaceAll('//', '/');
} else {
newPath = outPath + inputFilePath;
}
return newPath;
}