def rmdir(self, pathobj):
        """
        Removes a directory
        """
        stat = self.stat(pathobj)

        if not stat.is_dir:
            raise OSError(20, str(pathobj) % "Not a directory: '%s'")

        url = str(pathobj) + '/'

        text, code = self.rest_del(url, auth=pathobj.auth, verify=pathobj.verify,
                                   cert=pathobj.cert)

        if code not in [200, 202, 204]:
            raise RuntimeError("Failed to delete directory: '%s'" % text)
dataset/ETHPy150Open Parallels/artifactory/artifactory.py/_ArtifactoryAccessor.rmdir/swapped operands of `%`