# String to Path "location\_spec" variable

**URL:** <https://forum.knime.com/t/string-to-path-location-spec-variable/43719>\
**Category:** KNIME Analytics Platform\
**Created:** [June 2, 2022, 10:33am UTC](https://forum.knime.com/t/string-to-path-location-spec-variable/43719 "2022-06-02T10:33:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralphkoerse](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/c77e96/32.png) [@ralphkoerse](https://forum.knime.com/u/ralphkoerse)\
**Post date:** [June 2, 2022, 10:33am UTC](https://forum.knime.com/t/string-to-path-location-spec-variable/43719/1 "2022-06-02T10:33:07Z")

</div>

Hi all,

I have a specific question regarding the String to Path node (either the Variable or non-Variable type). The “File system” section of this node enables to set a specific mountpoint, but I would like to change that depending on the user’s component configuration input, which will be a String.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/1/71d7706d30f9f6bc5a747dae572a43fce8b2a225.png)

There is a specific type of flow variable that is used in this case, called “location\_spec” of type “v”, indicating the specified mountpoint:

![image](https://forum-cdn.knime.com/uploads/default/original/3X/7/8/78a89a1169619a6254dc778568cb681c437d66f7.png)

I am curious to how I can create this flow variable type myself. I am not able to use the Variable Expressions node to create such a variable type.

Hope you can help me, and thanks in advance!

Cheers,  
Ralph

---

<div class="post-metadata">

**Author:** ![ralphkoerse](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/c77e96/32.png) [@ralphkoerse](https://forum.knime.com/u/ralphkoerse)\
**Post date:** [June 2, 2022, 1:23pm UTC](https://forum.knime.com/t/string-to-path-location-spec-variable/43719/2 "2022-06-02T13:23:17Z")

</div>

I actually found a workaround (which I bet is the way to do it): in the “KNIME Mountpoint Connector” node you can use a String flow variable to specify a certain mountpoint to connect to. With the String to Path node you can then enable a file system connection input port by clicking the … on the node’s icon. Connecting this to the KNIME Mountpoint Connector takes away my issue 🙂

![image](https://forum-cdn.knime.com/uploads/default/original/3X/4/0/40e468a2ea14ddc6ae05814036e2d3e752fcb28f.png)

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [June 2, 2022, 3:07pm UTC](https://forum.knime.com/t/string-to-path-location-spec-variable/43719/3 "2022-06-02T15:07:40Z")

</div>

Thanks for posting your solution!

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 9, 2022, 3:08pm UTC](https://forum.knime.com/t/string-to-path-location-spec-variable/43719/4 "2022-06-09T15:08:12Z")

</div>

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