Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check file existence python

from os.path import exists

file_exists = exists(path_to_file)
#File_exists returns True if file exists otherwise returns False
print(file_exists)
Source by www.pythontutorial.net #
 
PREVIOUS NEXT
Tagged: #check #file #existence #python
ADD COMMENT
Topic
Name
5+5 =