- iterdir
Pathlib iterdir (flat)
- Iterate over the things (file names, folder names, etc.) in a folder.
examples/pathlib/path_lib_iterdir.py
from pathlib import Path folder = Path(".") for item in folder.iterdir(): print(item)
from pathlib import Path folder = Path(".") for item in folder.iterdir(): print(item)