private String generateS3Path ( String pathPrefixParent , String topologyName , String filename ) { List < String > pathParts = new ArrayList <> ( Arrays . asList ( pathPrefixParent . split ( "/" ) ) ) ; pathParts . add ( topologyName ) ; pathParts . add ( filename ) ; return String . join ( "/" , pathParts ) ; }
Generate the path to a file in s3 given a prefix topologyName and filename