uri.canonical

function

Library: URI handling (OMURI)
Import : omuri.xmd

Returns: the canonical form of path


Declaration
export string source function
   canonical value string source path


Purpose

Function uri.canonical removes superflous URI path elements from the argument path. For example, the result of

  uri.canonical "ftp://ftp.omnimark.com/./8.2/../9.0"
would be
  "ftp://ftp.omnimark.com/9.0"

This function can be useful for checking if two URIs identify the same resource, like the two URIs above. Since the same resource can be identified using different URI strings, you should apply uri.canonical on the URIs before comparing them.

Other Library Functions