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

0

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
Posted by: Guest on April-19-2022

Code answers related to "using glob module to search all html files in current directory in python"

Python Answers by Framework

Browse Popular Code Answers by Language