1import glob
2
3print 'Named explicitly:'
4for name in glob.glob('dir/subdir/*'):
5 print '\t', name
6
7print 'Named with wildcard:'
8for name in glob.glob('dir/*/*'):
9 print '\t', name
10
1
2import glob
3# path of the current directory
4path = '.'
5curfiles = glob.glob(path + '/*.html')
6for file in curfiles:
7 print(file)
8
9