Extracted from Pike v7.4 release 117 at 2004-07-26.
pike.ida.liu.se
[Top]
predef::

Method combine_path()


Method combine_path

string combine_path(string absolute, string ... relative)
string combine_path_unix(string absolute, string ... relative)
string combine_path_nt(string absolute, string ... relative)

Description

Concatenate a relative path to an absolute path and remove any "//", "/.." or "/." to produce a straightforward absolute path as result.

combine_path_nt() concatenates according to NT-filesystem conventions, while combine_path_unix() concatenates according to UNIX-style.

combine_path() is equvivalent to combine_path_unix() on UNIX-like operating systems, and equvivalent to combine_path_nt() on NT-like operating systems.

See also

getcwd() , Stdio.append_path()