productPath static method

String productPath(
  1. String outPath,
  2. String inputFilePath
)

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;
}