@property
    def directory(self):
        if not self.is_directory:
            msg = 'This task is a file task with no associated directory.'
            raise TaskError(msg)
        if self._directory is None:
            if self.is_transferred:
                self._directory = self.api._load_directory(self.cid)
        if self._directory is None:
            msg = 'No directory assciated with this task: Task is %s.' % \
                self.status_human.lower()
            raise TaskError(msg)
        return self._directory
Handle a VIM error.
dataset/ETHPy150Open shichao-an/115wangpan/u115/api.py/Task.directory--crossover with--dataset/ETHPy150Open joonty/vdebug/plugin/python/start_vdebug.py/DebuggerInterface.handle_vim_error