Getting OSError:
[WinError 123] The filename, directory name, or volume label syntax is incorrect: 'Example > Folder' Error
with
os.mkdir('Example > Folder')
How can I keep special symbols like ">" in my directory name
Getting OSError:
[WinError 123] The filename, directory name, or volume label syntax is incorrect: 'Example > Folder' Error
with
os.mkdir('Example > Folder')
How can I keep special symbols like ">" in my directory name
If your operating system / file system does not support those symbols in a directory name, then you cannot keep those special symbols.
You can't use the >
character in a file/folder name in Windows. There's nothing you can do from Python's side if the underlying OS won't allow it.