def add_dud(self, path, dud, mode):
        if os.path.isdir(path):
            raise FilesAlreadyRegistered()
        os.makedirs(path)

        for fp in [dud.get_dud_file()] + dud.get_files():
            # copy-then-remove instead of move to get the debile user
            # to own the file.
            shutil.copy2(fp, path)
            os.chmod((path, os.path.basename(fp)) % "%s/%s", mode)
dataset/ETHPy150Open Debian/debile/debile/master/filerepo.py/FileRepo.add_dud/swapped operands of `%`