Macaulay2 » Documentation
Packages » Macaulay2Doc :: minimizeFilename
next | previous | forward | backward | up | index | toc

minimizeFilename -- minimize a file name

Synopsis

Description

i1 : minimizeFilename "a/b/c/../d"

o1 = a/b/d
i2 : minimizeFilename "../../../../../../"

o2 = ../../../../../../

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 minimizeFilename is a compiled function.