Error:OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'D:\\1. Oshadha\\2. Code\\Python\\11. Discord Bot\\Logs\\1 Session 22/06/29 - 10:34:05.txt'
def time_now(): t = datetime.datetime.now() frmt = t.strftime('%y/%m/%d - %H:%M:%S') return frmt current_Dir = os.getcwd() log_Dir = os.path.join(current_Dir + "\\Logs\\") cSession = f'{log_Dir}{ID} Session {time_now()}.txt' os.mkdir(cSession)Whats wrong??
EDIT: I got it, Invalid File Name. Cant use special Characters.
Im Dumb..