def METHOD_NAME(self, *args, **kwargs):
    if not self._connected:  # pylint: disable=protected-access
        raise RuntimeError("FTP client is not connected")
    return func(self, *args, **kwargs)