public static void splitFilePath(String sourcePath,List<String> partitionsFiles,String separator){
  if (StringUtils.isNotEmpty(sourcePath)) {
    String[] files=sourcePath.split(separator);
    for (    String file : files) {
      partitionsFiles.add(file);
    }
  }
}

public static void splitFilePath ( String sourcePath , List < String > partitionsFiles , String separator ) { if ( StringUtils . isNotEmpty ( sourcePath ) ) { String [ ] files = sourcePath . split ( separator ) ; for ( String file : files ) { partitionsFiles . add ( file ) ; } } }
split sourcepath by comma
