Skip to main content

Create n node d depth bulk directory tree in any directory

Project description

Bulk Directory Tree

Build Status Requirements Status PyPI star this repo fork this repo

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.

Source Distribution

bulk_directory_tree-1.0.7.tar.gz (7.1 kB view hashes)

Uploaded Source

Built Distribution

bulk_directory_tree-1.0.7-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

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