canonicalise_uri

@accepts(utf8)
@returns(utf8)
def canonicalise_uri(uri)

Converts @uri to canonical URI form, ensuring it doesn't contain any redundant directory fragments or unnecessarily escaped characters. All URIs passed to RB.RhythmDB functions should be canonicalised.

uri :

URI to canonicalise

Returns :

canonical URI, must be freed by caller