Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

PEP 428: The pathlib module – object-oriented filesystem paths.

>>> p = Path('.')
>>> [x for x in p.iterdir() if x.is_dir()]
[PosixPath('.hg'), PosixPath('docs'), PosixPath('dist'),
 PosixPath('__pycache__'), PosixPath('build')]
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #PEP #The #pathlib #module #filesystem
ADD COMMENT
Topic
Name
5+7 =