code: public static String normalizePath(String path, String separator) {
      return path.endsWith(separator) ? path : path + separator;
    }
docs: Adds a trailing separator if it does not exist in path.
  
  @param path the file name
  @param separator trailing separator to add
  @return updated path with trailing separator