Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if file exists

import os

os.path.exists("file.txt") # Or folder, will return true or false
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #python #check #file #exists
ADD COMMENT
Topic
Name
4+4 =