1

I read glob — Unix style pathname pattern expansion — Python 3.7.1 documentation about glob.glob(pathname, *, recursive=False), but have no idea of the symbol *,
It seems not necessary, because

In [6]: glob.glob("*")                                                                                            
Out[6]: ['third.html', 'test.sh', 'second.html', 'first.html']
In [7]: glob.glob("*","/Users/me/Desktop/draft") 
TypeError: glob() takes 1 positional argument but 2 were given

glob takes 1 positional argument and 1 option recursive.

What does * mean ?

AbstProcDo
  • 19,953
  • 19
  • 81
  • 138

0 Answers0