Skip to main content

Create n node d depth bulk directory tree in any directory

Project description

Bulk Directory Tree

Build Status Requirements Status star this repo fork this repo PyPI

Creates n number of directories for d depth at any directory.

Installation

You can use pip to install this command line tool:

sudo -H pip install --upgrade bulk-directory-tree

Description

bulk-directory-tree is a command-line program to create n number of directories for d depth at given directory. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like.

bulk-directory-tree [OPTIONS]  

Options

-p, --path TEXT Bulk Directory Creation Path  
-n, --num INTEGER Number of folders to create in each directory  
-d, --depth INTEGER Directory tree depth  
-l, --length INTEGER  Directory name length  
--help  Show this message and exit.  

Defaults

-p, --path        YOUR_CURRENT_DIRECTORY  
-n, --num     1  
-d, --depth       1  
-l, --length   5  

Example

$ bulk-directory-tree -p '$YOUR_DIRECTORY' -n 3 -d 3 -l 4

Running this command will create a directory tree like shown below in YOUR_DIRECTORY

YOUR_DIRECTORY
├── 0c6c
│   ├── 1036
│   │   ├── 65b3
│   │   ├── 79c2
│   │   └── 7dca
│   ├── 575d
│   │   ├── 3097
│   │   ├── 6526
│   │   └── 8567
│   └── fc27
│       ├── 50b8
│       ├── 53ad
│       └── 650e
├── 5d16
│   ├── 8880
│   │   ├── 12c7
│   │   ├── 63d4
│   │   └── 701a
│   ├── b846
│   │   ├── 6f2c
│   │   ├── 761b
│   │   └── 8ebd
│   └── ba2d
│       ├── 75da
│       ├── 8405
│       └── ccb1
└── fc02
    ├── 53b8
    │   ├── 06d8
    │   ├── 73d0
    │   └── 9bf7
    ├── 8406
    │   ├── 37d9
    │   ├── 6954
    │   └── d3d4
    └── ec6f
        ├── 7150
        ├── 9d9f
        └── b846

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
bulk_directory_tree-0.0.7-py2.py3-none-any.whl (8.3 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page