Python Directory Walker module
Project description
dirwalker
dirwalker is a Python 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 git-flow, which are “git extensions to provide high-level repository operations for Vincent Driessen’s branching model.” To contirbute, install git-flow, fork dirwalker, and then run:
$ git clone git@github.com:<username>/dirwalker.git
$ cd dirwalker
$ git branch master origin/master
$ git flow init -d
$ git flow feature start <your_feature>
When you’re done coding and committing the changes for your_feature, issue:
$ git flow feature publish <your_feature>
Then open a pull request to your_feature branch.
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
dirwalker-0.2.2.tar.gz
(3.9 kB
view hashes)