import os
os.mkdir("test_dir")
os.mkdir("test_dir")FileExistsError: [Errno 17] File exists: 'test_dir'
import os
if not os.path.exists("test_dir"):
os.mkdir("test_dir")I tried to create something that was already there.
- Related case: https://pyai.io/en/python/basic/file-io/