def METHOD_NAME(func):
    """
    Decorator that asserts that the FTP client is connected before executing the decorated method
    """
    def wrapper(self, *args, **kwargs):
        if not self._connected:  # pylint: disable=protected-access
            raise RuntimeError("FTP client is not connected")
        return func(self, *args, **kwargs)
    return wrapper