realpath
Returns canonicalized absolute pathname
&reftitle.description;
stringrealpath
stringpath
realpath expands all symbolic links and
resolves references to '/./', '/../' and extra '/' characters in
the input path. and return the canonicalized
absolute pathname.
&reftitle.parameters;
path
The path being checked.
&reftitle.returnvalues;
Returns the canonicalized absolute pathname on success. The resulting path
will have no symbolic link, '/./' or '/../' components.
realpath returns &false; on failure, e.g. if
the file does not exist. On BSD systems realpath
doesn't fail if only the last path component
doesn't exist, while other systems will return &false;.
&reftitle.examples;
realpath example
]]>
&example.outputs;
realpath on Windows
On windows realpath will change unix style paths to
windows style.
]]>
&example.outputs;
&reftitle.seealso;
basename
dirname
pathinfo