def stored_version(self, name):
        """Returns the version of file `name` or None if it doesn't exist."""
        link_path = self._link_path(name)
        if not _path_exists(link_path):
            return None
        return _file_version(link_path)