def _new_rand_file_name(self, make_dir = False, end=''):
        c = 0
        while True:
            fname = rand_str(self._l) + end
            if not make_dir:
                full_name = join(self._dirname, fname)
                if not os.path.exists(full_name):
                    open(full_name, 'a').close()
                    return fname
            else:
                full_name = join(self._dirname, '__'+fname)
                if not os.path.exists(full_name):
                    os.mkdir(full_name)
                    return fname
                
            c += 1
            if 10 > c:
                self._l += 2
                c = 0
                print("INFO: increase random file name length to", self._l)
dataset/ETHPy150Open cimatosa/jobmanager/jobmanager/persistentData.py/PersistentDataStructure._new_rand_file_name/swapped operands of `>`