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.8.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

bulk_directory_tree-1.0.8-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file bulk_directory_tree-1.0.8.tar.gz.

File metadata

  • Download URL: bulk_directory_tree-1.0.8.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for bulk_directory_tree-1.0.8.tar.gz
Algorithm Hash digest
SHA256 6b1afe176730eebdcdb5b093c8bdb345440492b0b970989ff286440c131c25b1
MD5 e8bfae424496b20e5ae7e3e248267d71
BLAKE2b-256 70d1ceb25cafa0e66e02b1be43a6d3fec9a77b83b1879bb1bd9dc83773c5b070

See more details on using hashes here.

File details

Details for the file bulk_directory_tree-1.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for bulk_directory_tree-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc18bfaefeaad0adba5213ea386bf3a1c98da34fea10385984da22fa6d022a0
MD5 00abb6b6d70dd4abd8c695bceabfb9fb
BLAKE2b-256 6622c1aa715fee97499fa016e3e691b94a9d50e843b989ed8e1933a793520482

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