'Return the path as a \'file\' URI.'

def as_uri(self):

    if (not self.is_absolute()):
        raise ValueError("relative    path    can't    be    expressed    as    a    file    URI")
    return self._flavour.make_uri(self)
