Returns the newest available version number of the file.

           If the remote store is configured, it is queried, otherwise
           the local version is returned. It is assumed that the remote store
           always has the newest version of the file.

           If version is a part of ``name``, it is ignored.

def file_version(self, name):
        """Returns the newest available version number of the file.

           If the remote store is configured, it is queried, otherwise
           the local version is returned. It is assumed that the remote store
           always has the newest version of the file.

           If version is a part of ``name``, it is ignored.
        """

        if self.remote_store:
            return self.remote_store.file_version(name)
        else:
            return self.local_store.file_version(name)