FileTools[AbsolutePath] - make file path absolute
|
Calling Sequence
|
|
AbsolutePath(path, directory)
|
|
Parameters
|
|
path
|
-
|
string; file path, relative or absolute
|
directory
|
-
|
(optional) string; directory to which relative paths refer
|
|
|
|
|
Description
|
|
•
|
The AbsolutePath(path, directory) command returns an equivalent of the path which is an absolute path, that is, independent of the value of the current directory. If path is already absolute, then path is returned.
|
•
|
The optional argument directory specifies the directory to which path refers, if it is relative. Its default value is the current directory as provided by the currentdir command. The argument directory must itself be an absolute path.
|
|
Note: AbsolutePath does not remove the special directories . and .. from path.
|
|
|
Examples
|
|
>
|
|
| (1) |
The absolute path /home/maple is returned verbatim.
>
|
|
| (2) |
|
|
Download Help Document
Was this information helpful?