Iterating through a flat list *.dcm/*.tag file pairs and applying some processing on each pair
I have a flat list of files like this:
I'd like to iterate over this list and apply some processing on each *.dcm/*.tag pair, i.e., inside the "Loop Files" operator I'd like to have access to (IM001.dcm, IM001.tag), (IM002.dcm, IM002.tag), etc.
In Python this is easy but I'd like to learn how to do such file manipulation in RM
Is this possible?