def METHOD_NAME(self):
    if not self._media_dirs:
        return None
    if len(self._media_dirs) == 1:
        uri = path.path_to_uri(self._media_dirs[0]["path"])
    else:
        uri = "file:root"
    return models.Ref.directory(name="Files", uri=uri)