Re: join_path
- Posted by mattlewis (admin) Feb 25, 2013
- 1170 views
gbonvehi said...
As Greg quoted, it seems not to be a bug but the documented behavior. However, I wouldn't expect it to add the leading directory separator char as for example, if you're using relative paths, you wouldn't want it to be added.
I think it's a bit of a grey area. It seems that the function expects each subsequence to be a single element in a path, with no slashes. I was basically using this as a way to presumably join a couple of paths without wanting to duplicate slashes or bother checking for that myself.
Matt