This Mule project has an example 1) reads file from location 2) parses attributes from the original file path 3) builds a new path based on that 4) also example of a routing based on attributes on file path 5) write the file to new path.