Re: join_path

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu