Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Check if file already existing

import os.path

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