List Files/Folders

Hi.
I am replacing List Files (deprecated ) node with the new one but the old one has file_location flow variable which accept string as input and new one doesn’t has "file_location " flow variable that is why it is not accepting string. I think new node is accepting path. I tried to convert my string to path using "string to path " node but as my string is a mountpoint url so it’s not converting. kindly help



image

I think new node is accepting path

Yes, the List Files/Folders node accepts a path flow variable.

I tried to convert my string to path using "string to path " node but as my string is a mountpoint url so it’s not converting.

This should not be an issue. How are you doing this? How are you configuring the node? There’s no sign of this in your screenshot.

For future reference, I suggest that you book mark the File Handling Guide :

4 Likes

Hi , I have converted string to path , see the screenshot.



but now List Files/Folders show me this error, though the file exists.


Am I doing something wrong with configuration?

Did you check the file handling guide that I linked to earlier?

It’s hard to tell what’s wrong since I don’t know how your files and folders are organized.

If you want to use the knime:// syntax then you’ll need to select “Custom/KNIME URL” in the String to Path (Variable) node.

However, this approach has been updated, and you don’t need to include knime://knime.mountpoint. Instead, select the option Relative to → Current mountpoint and type in the path starting with the appropriate folder.

So if I previously wanted to access a file in a Test folder using knime://knime.mountpoint/Test, I’d just type “Test”:

image

image

3 Likes

so this approach worked! Thank you :slightly_smiling_face:

1 Like

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