import os.pathif os.path.isfile(filepath): print("File exists")
↧
Answer by Paul for How do I check whether a file exists without exceptions?
↧
import os.pathif os.path.isfile(filepath): print("File exists")