Skip to main content

allfiles: Iterate files in directory trees

allfiles privites functions which iterate files or directories in direcotory trees. The code of allfiles is almost a recipe 2.17 “Walking Directory Trees” in Python Cookbook, 2nd Edition. However, it is modified as my wish.

Example

::
>>> 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...)

Metadata

Release files for allfiles 1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for allfiles 1.0
File Size Uploaded Provenance Actions
allfiles-1.0.zip 4.2 kB Without provenance Details for allfiles-1.0.zip

Release files / allfiles-1.0.zip

Download URL allfiles-1.0.zip
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0265c4531e2606afea3f975d503bddc91618fdd55d9901430795576c5db14524
BLAKE2b-256 checksum
How to use checksums
4f0040c5ce09ea08ad8c7838c10b7815222af2e70466c38b83e99f6092edf254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for allfiles 1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page