def mkdir(self, path, recursive=True):
        if isinstance(path, text_type):
            path = path.encode('utf-8')
        if self._known_folders in path:
            return
        dirname, basename = posixpath.split(path)
        if dirname and recursive:
            self.mkdir(dirname)
        try:
            self.con.mkd(path)
        except Exception as e:
            msg = str(e)
            if msg[:4] != '550 ':
                self.log_buffer.append(e)
                return
        self._known_folders.add(path)
dataset/ETHPy150Open lektor/lektor/lektor/publisher.py/FtpConnection.mkdir/swapped operands of `in`