I would like to have a standard function that will convert relative paths to absolute, and, if possible, I would like to make it as cross-platform as possible (so I would like to avoid calling external library functions), This is intended to prevent the use of paths.
I know that such a function will not be able to detect symbolic links, but I'm fine with this for my application.
I could roll my own code, but some problems might arise, for example. how the platform handles the coding or changes to the "../" template.
Is there something similar already implemented?
source share