Skip to main content

OS wrapper python package which checks if a given folder tree path exists and creates them.

Project description

MAKETREEDIR

OS wrapper python package which checks if a given folder tree path exists and creates them.

Installation

Once you have cloned the repository, you can easily install by

pip install MakeTreeDir

Usage

Consider a situation where you have to create a folder tree like folder structure. i.e Folder inside a folder inside a folder If you have to make use of traditional approaches, you have to write a number of loops and checks for doing so using os library. This wrapper has already done it and you can create any folder tree structure in one line. eg:

from MakeTreeDir import MAKETREEDIR
md=MAKETREEDIR()
md.makedir('this/is/a/testing/package/creation')

### Corner cases
md.makedir('/media/username/New Volume/folderName')
md.makedir('../../../folderName')
md.makedir('C:\\Users\\userName\\folderName')

The folders will be created instantly.

Authors

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

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

MakeTreeDir-0.1.4.tar.gz (2.2 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