For instance, multiple icon.output files that are created in multiple separate directories (for different dates), which should then all be linked/copied over for analysis with a post-processing script. We need to make sure that they don't all have the same value in the filenames dictionary, such that they overwrite each other.
I think you need to handle all inputs separate as these can be potentially different files. Note that currently our code is also buggy in this regard. If we pass the outputs of a parametrized shell task to another task aiida will copy the file to the working directory. Since the output filename is the same for each parameter they will be overwritten. So only one file exists in the working directory of the next tasks that gets this as input. The solution is to give the outputs unique names.
Originally posted by @agoscinski in #136 (comment)