I have a third-part software with external configuration that takes "path to file" as input parameter. Unfortunately, this software concatenates path given with some predefined path. For example, it expects 'data/images' as parameter and will use '/Users/someuser/work/source/data/images'. I want to specify and absolute path, but giving something like '/tmp/images' to this software will just result in unexisting path '/Users/someuser/work/source//tmp/images' being used :(. Is it some path trick i can use alongside of '..' so i can give software something that will result in absolute path after software concatenates it with predefined one. Using '..' works but it's not a very good solution since path configuration is static and predefined path software use can change.
| |||
feedback
|
migrated from stackoverflow.com Sep 9 '11 at 22:58
This question came from our site for professional and enthusiast programmers.
|
There are myriads of possibilities to make
| |||
|
feedback
|
|
If you symlink
Every path there will be based off the root:
will point to
which you can check by
| |||||||
feedback
|