Skip to main content

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

Metadata

Release files for bulk-directory-tree 1.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bulk-directory-tree 1.0.8
File Size Uploaded
bulk_directory_tree-1.0.8.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bulk-directory-tree 1.0.8
File Interpreter ABI Platform
bulk_directory_tree-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / bulk_directory_tree-1.0.8.tar.gz

Download URL bulk_directory_tree-1.0.8.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6b1afe176730eebdcdb5b093c8bdb345440492b0b970989ff286440c131c25b1
BLAKE2b-256 checksum
How to use checksums
70d1ceb25cafa0e66e02b1be43a6d3fec9a77b83b1879bb1bd9dc83773c5b070
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / bulk_directory_tree-1.0.8-py3-none-any.whl

Download URL bulk_directory_tree-1.0.8-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cc18bfaefeaad0adba5213ea386bf3a1c98da34fea10385984da22fa6d022a0
BLAKE2b-256 checksum
How to use checksums
6622c1aa715fee97499fa016e3e691b94a9d50e843b989ed8e1933a793520482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

1 release file

0.0.11

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page