Converting relative path to absolute path
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Labels:
- Topic of Interest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
