I’m trying to generate a tree list view from file paths in a table to allow selection of several files and/or folders.
I thought of something along these lines:
Ideally, I’d like to retrieve the selected rows/entries as a KNIME table afterwards, similar to the Table View node:
Or is there maybe a KNIME node implementation doing this already?
Thanks for your post. Currently, there are no nodes which accomplish what you are trying to do out of the box. I have three suggestions for you:
Use the Table View node to provide the user with the paths they can select in a table format. They can then select the paths using the checkboxes in the table and select Close & Apply and the output table will look almost identical to the one you showed in your post.
Lastly, you could implement a custom node for the file tree viewer. We have some good documentation on development here if you are interested. This option (while obviously the most work) results in both the visualization you are looking for and the output table without the use of additional nodes.
Sorry there isn’t an easier solution, but that is an interesting node idea and I think it would be a really cool to addition to the platform