code: public static String normalizeDirPath(String dirPath) {
          if (dirPath == null || dirPath.isEmpty())
              return "";
  
          dirPath = dirPath.replace("\\", "/");
  
          if (!dirPath.endsWith("/")) {
              dirPath = dirPath + "/";
          }
  
          return dirPath;
      }
docs: Normalize a path that represents a directory
  
  @param dirPath
  @return