Suppose I'm writing code using pathlib and I want to iter over all the files in the same level of a directory.
I can do this in two ways:
p = pathlib.Path('/some/path')
for f in p.iterdir():
print(f)
p = pathlib.Path('/some/path')
for f in p.glob('*'):
print(f)
Is one of the options better in any way?