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 details)

Uploaded Source

File details

Details for the file MakeTreeDir-0.1.4.tar.gz.

File metadata

  • Download URL: MakeTreeDir-0.1.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.5.2

File hashes

Hashes for MakeTreeDir-0.1.4.tar.gz
Algorithm Hash digest
SHA256 df673da620df6117a22ae6844bc52cf3605d605b8a993060c53048e5e4f1a473
MD5 28eb84f808cfe41fc391e9da9a0bb4f0
BLAKE2b-256 0a4372b7fc40ddcb9dbe9f6d3902a0beb605e327253bb1aaaa28a3b63b1f6633

See more details on using hashes here.

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