Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » system facilities » toAbsolutePath
next | previous | forward | backward | up | index | toc

toAbsolutePath -- the absolute path version of a file name

Description

i1 : toAbsolutePath "a/b.m2"

o1 = /home/m2user/build/BUILD/Macaulay2-1.25.05-build/M2-release-1.25.05/M2/
     BUILD/aarch64-redhat-linux-gnu/Macaulay2/packages/Macaulay2Doc-temporary
     /a/b.m2

Paths of the form foo/x/../bar, are shortened to foo/bar without checking the file system to see whether x is a symbolic link. For the other behavior, see realpath.

See also

For the programmer

The object toAbsolutePath is a function closure.


The source of this document is in Macaulay2Doc/ov_system.m2:1351:0.