I have a list of relative paths to files in a Text Box and would like to convert them to absolute paths. Any suggestions on how to do this?
Solved! Go to Solution.
Hi @bhauteshved
One way would be to use a dynamic input tool to load all the files and choose the option to output fullpath as field name in the template file config of the dynamic input tool.
This is assuming that the files all have the same structure.
I also played with another idea, which is to turn a directory tool into a batch macro like this:
I used an example of a relative path such as .\filename.yxmd
I then split it into the path (.\) and the filename (filename.yxmd) with a regex tool in the workflow and used one to update the folder path and the other to update the filename filter in the directory tool.
The problem with this is that the relative path (.\) is determined by where the macro is saved, not the workflow.
At this point I relaised that I probably need some info on these relative paths.
Hello @bhauteshved ,
Would you be able to share the workflow? I'm interested in learning how you setup the inputs to the directory tool. Thanks