Looks similar to HadoopUtil.flattenAndPutDataInFolder(FileSystem fs, String inputPath,
                                                 List<String> remoteLocations)