overwrite Path variable, how to

Hello knimers

I am currently working with KNIME version 4.5.2 (yes, i know…)

I want to reuse one Path Variable many times -actually not in loop but it could be- so I don’t need to configure a writer every time with a different variable names.

I can edit with a ‘Java Edit Variable (simple)’ node, and with this node you can optionally overwrite a variable. But it only works with integer, double and string types. ‘Variable Expressions’ node only works on these three types as well.

return $${SmyPath}$$ + "\\" + $${Sfile_name}$$;
\\ overwrite >> $${Sfile_name}$$

Next I have to convert my string to Path, but overwrite it isn’t an option function. Then I end up with:

$${Pfile_name_location}$$
$${Pfile_name_location (#1)}$$
$${Pfile_name_location (#2)}$$ ...

Do you know how to overwrite Path Variables?

Thanks in advance