I’m trying to transfer a list of KNIME workflows from their original destinations in a KNIME workspace into one folder in the workspace using the -Transfer Files (table)- node, however it fails on execution.
When I check the destination folder, I can see that all the sub folders of the workflow and their files get transferred but the files within the root directory eg. “workflow.svg” do not.
Workflow can be found here:
Any suggestions to overcome this issue? Perhaps its a bug?
@HeatherPikairos OK I think I know what is going on. The Transfer Files node would not copy the whole structure but would try to put all the single files into the same (top) traget folder - which will result in unwanted structures.
To solve this one would have to use absolute paths (otherwise the List/Files node would ‘recognize’ the workflows and not include them and their files it seems) to scan all files and folders and then replace the original (source) path part with the target path part …
Thanks @mlauber71 for working hard on this solution, its much appreciated. Also, sorry for not getting back to you yesterday with a more detailed workflow.
Hi again @mlauber71, I’ve looked at the solution and it works So thank you very much for both of your suggestions (zipping and using the List Files/Folders), they are useful!
I still feel it would be nice for the Transfer Files node to be able to achieve this on its own though.
Yes that would be nice. I have never though about the point that it would not transfer whole folder structures but ‘just’ put all files in a single folder or you would have to provide individual paths.