def _file_url(path): """Return a file:// url (as string) for the given LocalPath. Arguments: path: The filepath as LocalPath (as handled by py.path) """ return jinja.file_url(str(path))
def file_url(self): """Return a file:// link to the directory.""" return jinja.file_url(str(self.layout))