mkdirs
is a command-line interface (CLI) tool written in C++ designed to simplify the process of creating complex directory structures with ease. By allowing users to input a desired file structure, mkdirs
automates the creation of directories and files, reflecting the specified hierarchy directly in the filesystem.
Have you ever embarked on a new project, only to find yourself tediously right-clicking to create each file and folder one by one? 🖱️ Or perhaps you've encountered someone else's project with a file management system that seemed like a complete mess? 📂🔥 This is where mkdirs steps in to save the day! 💡🚀
-
Start with Names: Begin by typing the name of your first file or directory. Press
Enter
to confirm. -
Set Hierarchy with Tab: Utilize the
Tab
key to indicate the hierarchy levels for your structure. EachTab
press nests the next item deeper in the structure. -
Undo with Delete: Made a mistake? Simply press
Delete
to remove the last entered item. -
Build Your Structure: Continue adding the names of files or directories, confirming with
Enter
and setting their position in the hierarchy withTab
. Once you're done,mkdirs
will create the directory and file structure as you've outlined.
git clone https://github.com/Code-MonkeyZhang/mkdirs.git
cd mkdirs/bin/
To run mkdirs, you have two options:
Option 1: Execute Directly in the Terminal
./mkdirs
Option 2: Source the Binary File
Alternatively, you can source the binary file to make mkdirs available from any location in the terminal. To do so, you need to add the full path of the mkdirs binary to your shell's configuration file (e.g., .bashrc, .zshrc, etc.). This method allows you to run mkdirs by simply calling its name in the terminal:
source /path/to/mkdirs/bin/mkdirs
Replace /path/to/mkdirs/bin/mkdirs with the actual path to the mkdirs binary on your system. After sourcing, you can use the mkdirs command directly:
mkdirs