[Function] uri-parsed-path

Package

ystok.uri

Signature

uri-parsed-path uri => result-list
(setf uri-parsed-path) list uri => list

Arguments
uri
An instance of the uri structure class.
list
A list of elements, possibly empty, see Description.
Values

A list of the following form:

([:absolute | :relative] component1 [component2...])
Description

The function returns or sets a parsed representation of the uri path. Each component of the parsed path is like

element | (element param1 [param2 ...])

element is a path element; if the path refer to a directory, the last component of its parsed path is the empty string "".

param is a path element parameter.

 

Example
(uri-parsed-path (parse-uri "foo;10/bar:x;y;z/baz.htm"))
=> (:relative ("foo" "10") ("bar:x" "y" "z") "baz.htm")