Check if a URL with knime: protocol is pointing to knime server

#1

Hi Team,

Is there a programmatic way to determine whether an URL with ‘knime:’ protocol is pointing to a knime server or not, basically to check if it is pointing to a non-local file?

Thanks
Ravikiran

0 Likes

#2

Hi @ravikiran,

take a look at the following method in the FileUtil:

best,
Gabriel

5 Likes

#3

Hi Gabriel,

Another follow up question:
If I specify my URL to point to a server like, knime://knime-server/path/to/file and if the code gets executed within the server, by any chance will resolveToPath() be able to resolve to the local file in my server?

Thanks
Ravikiran

0 Likes

#4

You are not able to directly resolve local files on the server for security reasons as well as practical ones, if you are using distributed executors, the workflow may run on a different machine than the KNIME Server. You can however read and write files on the server (and locally) by using the following methods:


Note that you can only write to and read from the workflow repository on the server.

best,
Gabriel

1 Like

closed #5

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

0 Likes