p$ = CanonizePath(path$)
path$
into a canonical one.
Canonizing a path involves the following operations:
Note that the path passed to CanonizePath()
needn't exist. If it doesn't exist, CanonizePath()
will try to resolve as many components in the path as possible. Note, however, that CanonizePath()
doesn't perform path validation. If you pass a path that is invalid because of syntactical
errors, the result is undefined.
Print(CanonizePath("../image.jpg"))The code above will print the fully qualified path of the file
image.jpg
.