toAbsolutePath filename
i1 : toAbsolutePath "a/b.m2" o1 = /private/tmp/macaulay2-20230627-3072-8ygk79/M2-release-1.22/M2/BUILD/ build-brew/Macaulay2/packages/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.
The object toAbsolutePath is a function closure.