Structure Mapper is a Go-based utility that prints a visual representation of a directory tree.
- Prints a directory tree with folder icons.
- Excludes specified directories from the tree.
- Simple and easy to use.
-
Clone the repository:
git clone https://github.com/1Solon/structure-mapper.git
-
Navigate to the project directory:
cd structure-mapper
-
Build the project:
make build
-
Run the script:
make run <target_directory> [exceptions...]
To run the script, use the following command:
structure-mapper.exe <target_directory>
You can also exclude directories from the tree by specifying them as arguments:
structure-mapper.exe -e dir_to_exclude1, dir_to_exclude2 <target_directory>
To display the directory tree up to a certain depth, use the -d
flag:
structure-mapper.exe -d 2 <target_directory>
If you need a refresher on the available options, use the -h
flag:
structure-mapper.exe -h
Running the following command:
structure-mapper.exe -e dir_to_exclude1, dir_to_exclude2 -d 2 /path/to/target_directory
Might produce an output like this:
📁
├──📁 folder1
│ ├──📁 subfolder1
│ └──📁 subfolder2
└──📁 folder2
└──📁 subfolder3
Contributions are welcome! If you would like to contribute to the project, please open an issue or a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please open an issue.