Answers for "how to check file exists in python then not execute command"

2

how to check if some file exists in python

import os
filename = "creating file with python function"#your file name
print("Do ",filename," exists:- ",os.path.exists(filename))
Posted by: Guest on October-05-2021

Code answers related to "how to check file exists in python then not execute command"

Python Answers by Framework

Browse Popular Code Answers by Language