Closed
Description
Especially in web applications (or other apps that do not use the current working directory of the operating system) it would be useful to be able to use make_absolute against an arbitrary path. In Python that's provided by os.path.join
. Unfortunately that also comes with negative security aspects (if the right hand side is absolute).
I would propose a Path::unsafe_join
function that works like the Python one. As an extension it would also make sense to further improve how joining works for Windows.
Example implementation: https://gist.github.com/mitsuhiko/4974499