Extracted from Pike v7.3 release 53 at 2002-09-10.
pike.ida.liu.se
[Top]

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