Expand/Shrink

canonical_path

Definition: string s = canonical_path(string path_in, integer is_directory=0, case_flags=CORRECT)
Description: Return the full path and file name of the supplied file name.
pwa/p2js: Not supported.
Comments: In Phix this is just a simple wrapper for get_proper_path, which is defined in builtins\pgetpath.e (as is canonical_path). The two optional parameters are only present for compatibility with Euphoria, see technicalia for details, and in almost all cases should simply be omitted.

Typically canonical_path() should only be required where you are going to compare/sort the resulting full paths. In theory a statement such as fn = open(canonical_path(path)) should work exactly the same and offer no benefits over the simpler fn = open(path).
See Also: get_proper_path, upper, lower
Expand/Shrink