Node for selecting the path to the folder

Hello guys. For my case I need some node to choose and then pass to the next one the path to a folder for example as a string. Could you help me to find out how to implement this?

Hi @Alex_025 .

The node Create File/Folder Variables creates a path variable and the Variable To Table Row
Creates a row with the path. The path to string comes at the end.

Br

4 Likes

OK, thank you. But may you know how I can extract this strig in a Python script node?
BR

Hi you get the current file path like this

import os
#check by printing
print(os.path.abspath(__file__))

If you like to store it in the table you need to write it to the dataframe before outputing it with knio
br

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