I need a solution that will add the file name as a comment to each file in the stream. This means creating a comment line with the file path in the final destination file.
The current functionality is as follows:
pseudocode: concat(file1, file2)
# output:
# contents of file 1
# contents of file 2
My desired outcome is:
pseudocode: concat(add_comments(file1, file2))
# output:
# // file1
# contents of file 1
# // file2
# contents of file 2