New course! Every coder should learn Generative AI!
Try a free lesson+ 1
How to chech if a file exists?
How can I check if a filename exists before creating a new one?
2 Answers
+ 9
os.path.exists('yourpath')
+ 1
Thanks man
How can I check if a filename exists before creating a new one?