Python Directory Walker module
Project description
dirwalker
dirwalker is a Python (2.6+/3.3+) package that walks multiple-level directories searching for files with the given extensions.
Requirements
Python standard os module
Usage
import dirwalker
# Search with recursing subdirectories
dirwalker.find_filenames_with_extensions(
'/Users/me/dev/search_directory',
['txt', '.csv'])
# Search without recursing subdirectories
dirwalker.find_filenames_with_extensions(
'/Users/me/dev/search_directory',
['txt', '.csv'],
recurse=False)
Contributing
dirwalker is developed using Scott Chacon’s GitHub Flow. To contribute, fork dirwalker, create a feature branch, and then submit a pull request. GitHub Flow is summarized as:
Anything in the master branch is deployable
To work on something new, create a descriptively named branch off of master (e.g., new-oauth2-scopes)
Commit to that branch locally and regularly push your work to the same named branch on the server
When you need feedback or help, or you think the branch is ready for merging, open a pull request.
After someone else has reviewed and signed off on the feature, you can merge it into master.
Once it is merged and pushed to master, you can and should deploy immediately.
License
dirwalker is released under the MIT license. Please see the LICENSE.txt file for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dirwalker-0.5.0.tar.gz
.
File metadata
- Download URL: dirwalker-0.5.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2e8dd04661aac2d9f2b84894fbf9ada227a0dab3d5db398f27bbf1a11b78984 |
|
MD5 | 045b5ff96b6a40787fff3a54412d1b4d |
|
BLAKE2b-256 | afd63951b8841a54fde257a265a120fd27b91456ac169ab9ab6c788ca5858b77 |