POSIX compliant path joining -


i want write posix compliant function join paths. i've read pathname resolution section. i'm not sure should result when first path starts "..".

if join "../abc/def" , "xyz", of following, should result in opinion? why?

abc/def/xyz  /abc/def/xyz  ../abc/def/xyz 

something else?

.. actual file system entry referring parent of directory contained in. joining 2 paths should not depend on context, such identity of current directory. ../abc/def/xyz correct answer lacking such context.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -