Path.iterdir()
When the path points to a directory, yield path objects of the directory contents:
1 2 3 4 5 6 7 8 9 10 | >>> p = Path( 'docs' ) >>> for child in p.iterdir(): child ... PosixPath( 'docs/conf.py' ) PosixPath( 'docs/_templates' ) PosixPath( 'docs/make.bat' ) PosixPath( 'docs/index.rst' ) PosixPath( 'docs/_build' ) PosixPath( 'docs/_static' ) PosixPath( 'docs/Makefile' ) |
Please login to continue.