You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🛠️ A Zig-based mv alternative with automatic conflict resolution — adds numeric suffixes when files already exist. Fast, lightweight, and cross-platform.
A Zig-based utility that enhances file and directory moving capabilities with smart conflict resolution. Unlike the standard mv command, move automatically handles naming conflicts by appending indices to filenames or directory names.
.
├── 2.txt
├── 2_1.txt # 1.txt was moved and renamed to avoid conflict
├── 3.txt
├── 4.txt
├── 5.txt
└── 6.txt
2. Moving Multiple Files
Command:
move 1.txt 2.txt 3.txt destination_folder/
3. Moving Directories
Command:
move source_directory/ destination_directory/
Supported Operations
move fileA fileB – Move and rename fileA to fileB with conflict resolution
move file1 file2 file3 targetDir – Move multiple files into a directory
move dir1 dir2/ – Move a directory into another directory
How It Works
When a naming conflict occurs, move automatically:
Detects if the destination path already exists
Appends an incremental index suffix like _1, _2, etc.
Moves the file or directory safely without overwriting existing content
Why Zig?
Zig provides:
⚡ Native performance
🧩 Minimal binary size
🧠 Simple, predictable behavior
🌐 Cross-compilation built-in
License
MIT
About
🛠️ A Zig-based mv alternative with automatic conflict resolution — adds numeric suffixes when files already exist. Fast, lightweight, and cross-platform.