Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check folder exist

import os
os.path.isdir("/home/el")  # Returns True if exist
os.path.exists("/home/el/myfile.txt")  # Return False if not exist
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #check #folder #exist
ADD COMMENT
Topic
Name
9+9 =