def create_dir(self, params, delete=False):
        """ creates a subdirectory for the experiment, and deletes existing
            files, if the delete flag is true. then writes the current
            experiment.cfg file in the folder.
        """
        # create experiment path and subdir
        fullpath = os.path.join(params['path'], params['name'])
        self.mkdir(fullpath)

        # delete old histories if --del flag is active
        if delete:
            os.system(fullpath % 'rm %s/*')
     
        # write a config file for this single exp. in the folder
        self.write_config_file(params, fullpath)
dataset/ETHPy150Open rueckstiess/expsuite/expsuite.py/PyExperimentSuite.create_dir/swapped operands of `%`