KNIME 4.3: Path-type feedback

I’m trying to adjust a component on KNIME hub and this new IO turns out to be much less usable than before.

tl;dr: We need a node that converts knime protocol path to local file system path (Like URL to File Path)

Starting with the “easy” stuff:

Create Temp Folder:

The new Create Temp Folder doesn’t have a easy option to use the OS default temp dir: it’s either workflow related or you have to find the temp dir manually. OK, inside workflow works fine enough but this will lead to knime protocol Paths which cause issues later in this workflow.

On top of that there is nothing in the output that always a cops&paste of the generated path into a OS file explorer. When making workflows or debugging them that’s very helpful to quickly get access to generated files. But I only get this:

image

Which tells me nothing much were I can find the data (I need to know the local path to the workspace and go from there, very impractical), Please also output the resolved local path or at least make a “convert path to local file system” node.

Decompress Files:

The new Unzip nodes gives a warning in the dialog of unsupported file type but it actual completes without issue. The file is a pptx file. In fact all office files are just zip files with a different name so probably just add them to the list of accepted files.

Also because it got renamed to decompress maybe also adding 7z as format could be a nice addition.

Now the annoying part:

Local File Browser Configuration
My component doesn’t work anymore on KNIME 4.3 because the output of “Local File Browser Configuration” has changed. (this node in old version should actually have been deprecated due to the different output).

Path-type

The “Create Temp Folder” simply output a knime:// path if configured relative to say workflow directory. And the Decompress just goes along with that. The “Create Temp Dir” had an option to use URI or Location as output and with “URL to File Path” one could easily extract thing like file name and most importantly it converted the knime:// path to actual file system paths. This isn’t possible anymore. “Path to String” just converts the Path to a String not changing it to the local file system. This is a problem if you want to use the path say in a Python snippet. The “Path to String” node needs the same functionality as URL to String or maybe even better a converter node that converts a knime path to local file system path (as already mentioned before). Knowing where my workspace is (with extract Context Node) + some string manipulation I can build the right path but it’s rather inconvenient.

3 Likes

Hi @kienerj,

thanks for all the feedback. We are still working on improving the overall experience with the file handling, so feedback is very welcome :slight_smile:

Try using the Path to String followed by the URL to File Path node. This should resolve your relative Path variable to a String variable containing the absolute local path.

What exactly is not working? It just outputs and additional variable and still all the ones that have previously been output (afaik).

Best,
Simon

4 Likes

Previously it had a string path output and URL path output and know it looks like this:

image

No variable named just “ppPath” leading to issue downstream:

WARN Unzip Files (deprecated) 0:19:0:1 Errors overwriting node settings with flow variables: Unknown variable “ppPath”

EDIT: how it looked previously:

image

2 Likes

Hi @kienerj,

thanks for providing the screenshots.
This is no intended behavior and the missing flow variable should still be there.
I have created a ticket and this will get fixed as soon as possible.

Greetings,
Daniel

5 Likes

Hi @kienerj,

the ticket has been solved and the flow variable is back in 4.3.1
Thank you for reporting.

Greetings,
Daniel

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.