Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

file exist python

import os.path

if os.path.exists('filename.txt'):
    print ("File exist")
else:
    print ("File not exist")
Source by linuxize.com #
 
PREVIOUS NEXT
Tagged: #file #exist #python
ADD COMMENT
Topic
Name
6+9 =