Answers for "How to use Python Glob Module"

0

How to use Python Glob Module

import glob
# path of the current directory
path = '.'
curfiles = glob.glob(path + '/*.html')
for file in curfiles:
    print(file)
Posted by: Guest on August-08-2021

Code answers related to "How to use Python Glob Module"

Python Answers by Framework

Browse Popular Code Answers by Language