Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to check if some file exists in python

# plz suscribe to my youtube channel -->
# https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A

import os
filename = "creating file with python function"#your file name
print("Do ",filename," exists:- ",os.path.exists(filename))
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #check #file #exists #python
ADD COMMENT
Topic
Name
4+1 =