Comment¶
pathlib.Path.glob is preferred to the
glob
module!!The list returned is not sorted.
In [2]:
import glob
In [9]:
files = glob.glob("*.markdown")
files[:5]
Out[9]:
In [11]:
sorted(files)[:5]
Out[11]:
In [12]:
glob.glob("*pop*")
Out[12]:
In [ ]: