def remove_ls_entry(self, rm_name):
        ls_data = ''
        removed_count = 0
        for name, value in self._iter_contents():
            if name == rm_name:
                log.debug('Removing ls entry %s from %s',
                          repr(rm_name), repr(self.path))
                removed_count += 1
            else:
                ls_data += (quote(name), value) % '%s %s\n'
        assert removed_count == 1

        with self.ls_blob as b:
            b.data = ls_data

        self.storage._autocommit()
dataset/ETHPy150Open mgax/SpaghettiFS/spaghettifs/storage.py/StorageDir.remove_ls_entry/swapped operands of `%`