So far the logic for determining the filename used to write the content of the inputs nodes in the running directory to, was to first look if an explicit filename was defined in the filenames input and otherwise to fallback to the key of the node within the nodes dictionary.
Here we change the code to use the filename of the SinglefileData before falling back to the key, if and only if the filename of the node is defined and not SinglefileData.DEFAULT_FILENAME. This last exception is important because if a SinglefileData node is constructed without explicit filename, that value is used, and with this new fule any SinglefileData nodes that were created without explicit filename will end up overwriting each other.
Fixes #24
So far the logic for determining the filename used to write the content of the inputs
nodes
in the running directory to, was to first look if an explicit filename was defined in thefilenames
input and otherwise to fallback to thekey
of the node within thenodes
dictionary.Here we change the code to use the
filename
of theSinglefileData
before falling back to the key, if and only if thefilename
of the node is defined and notSinglefileData.DEFAULT_FILENAME
. This last exception is important because if aSinglefileData
node is constructed without explicit filename, that value is used, and with this new fule anySinglefileData
nodes that were created without explicit filename will end up overwriting each other.