在目录树中迭代匹配的文件
项目描述
allfiles提供遍历目录树中文件或目录的功能。allfiles的代码几乎与Python CookBook第二版中的2.17“遍历目录树”食谱相同。但是,它已根据我的意愿进行了修改。
示例
- ::
>>> from allfiles import allfiles >>> allfiles('C:\Python32\lib') <generator object allfiles at 0x02C8A2B0> >>> for f in allfiles('C:\Python32\lib'): ... print(f) ... C:\Python32\lib\abc.py C:\Python32\lib\aifc.py C:\Python32\lib\antigravity.py C:\Python32\lib\argparse.py C:\Python32\lib\ast.py C:\Python32\lib\asynchat.py C:\Python32\lib\asyncore.py C:\Python32\lib\base64.py C:\Python32\lib\bdb.py C:\Python32\lib\binhex.py (and more files...)
项目详情
关闭
allfiles-1.0.zip的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 0265c4531e2606afea3f975d503bddc91618fdd55d9901430795576c5db14524 |
|
MD5 | d25991ebdc6277f60b90057c565f3b2d |
|
BLAKE2b-256 | 4f0040c5ce09ea08ad8c7838c10b7815222af2e70466c38b83e99f6092edf254 |