Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

using glob module to search all html files in current directory in python

import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
    print(file)
    
Copy Code
Source by www.alixaprodev.com #
 
PREVIOUS NEXT
Tagged: #glob #module #search #html #files #current #directory #python
ADD COMMENT
Topic
Name
5+8 =