[Function] uri-type

Package

ystok.uri

Signature

uri-type uri => pathname-type

Arguments
uri
An instance of the uri structure class.
Values

A string or nil.

Description

If uri refers to a file, the function extract the extension (type) part from the path slot. It seeks the last period '.' in the last component of the parsed path.