Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Check Directory Exist


>>> import os
>>> os.path.isdir('new_folder')
True
>>> os.path.exists(os.path.join(os.getcwd(), 'new_folder', 'file.txt'))
False

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #Check #Directory #Exist
ADD COMMENT
Topic
Name
9+9 =