Skip to main content

Python OS wrapper to grab all/specific files from all the subdirectories

Project description

tree-handler

OS wrapper to grab specific/all files from all the subdirectories of the given folder, process them with your algorithm and save the output retaining the same input structure

Installation

You can easily install the package using

pip install treeHandler

Usage

This package will help you to find all/specific files from the subdirectories of a given directory. Thus you can process these files and save them retaining the complex tree structure.

eg: If you have a complex tree structured folder and you need to get all the images('.jpg','.png') from the folder, use

from treeHandler import treeHandler
th=treeHandler()
imageList=th.getFiles('inputFolder',['jpg','png'])

### If you need all files
th.getFiles('inputFolder')

### If you need case sensitive (only lowercase 'jpg')
th.getFiles('inputFolder',['jpg'],caseSensitive=True)

The output will be obtained instantly.

Authors

  • Sreekiran A R - Analytics Consultant, AI Labs, Bridgei2i Analytics Solutions - Github , Stackoverflow

  • Anil Prasad M N - Project Manager, AI Labs, Bridgei2i Analytics Solutions - Github

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treeHandler-1.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page