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
Release files for MakeTreeDir 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| MakeTreeDir-0.1.4.tar.gz | 2.2 kB | Details |
Release files / MakeTreeDir-0.1.4.tar.gz
| Download URL | MakeTreeDir-0.1.4.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df673da620df6117a22ae6844bc52cf3605d605b8a993060c53048e5e4f1a473
|
|
BLAKE2b-256 checksum How to use checksums |
0a4372b7fc40ddcb9dbe9f6d3902a0beb605e327253bb1aaaa28a3b63b1f6633
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|