touchp
Recursively create directories and files in a single command
Listed in categories:
ProductivityDeveloper ToolsGitHub
Description
touchp is a command-line utility written in Go that recursively creates directories and target files in a single command. It combines the functionality of mkdir -p and touch, making it easy to create files along with their parent directories. It supports multiple file creation, customizable permissions, and initial content.
How to use touchp?
Once installed, you can use touchp with the syntax: touchp [options] path/to/filename. Options include -f to force overwrite, -c to specify initial content, and -m to set file permission mode.
Core features of touchp:
1️⃣
Recursively create directories and files with one command
2️⃣
Support for multiple file creation in a single invocation
3️⃣
Customizable file permissions (e.g., 0644, 0600)
4️⃣
Option to specify initial content for the files
5️⃣
Cross-platform compatibility (macOS, Linux, Windows)
Why could be used touchp?
# | Use case | Status | |
---|---|---|---|
# 1 | Creating a directory structure with files in one command | ✅ | |
# 2 | Setting custom permissions for newly created files | ✅ | |
# 3 | Initializing files with specific content during creation | ✅ |
Who developed touchp?
Touchp is developed by Bin Hua, who has created this utility to simplify the process of creating directories and files in a command-line environment.