I am looking for a way to insert the file name as a comment to each file in the stream. So after all you'll have a comment line with the file path, in the concatenated destination file.
What it does right now:
pseudocode: concat(file1, file2) # output: # contents of file 1 # contents of file 2 What I want to achieve:
pseudocode: concat(add_comments(file1, file2)) # output: # // file1 # contents of file 1 # // file2 # contents of file 2