A command-line application written in C++20 that automatically organizes files in a directory by grouping them into folders based on their file extensions.
- 📁 Automatically detects all files in a given directory.
- 🗂️ Groups files into subfolders by extension (e.g.,
.txt,.jpg,.cpp, etc.). - 🧠 Uses modern C++20 and the standard
<filesystem>library. - ✅ User confirmation before moving files.
- 🛡️ Robust exception and error handling.
- 🔧 C++20-compatible compiler (e.g., MSVC, g++, clang++)
- 🛠️ CMake (optional)
- 💻 Visual Studio 2022 or any IDE with C++20 support
- Open the
.slnsolution file. - Build the project in
ReleaseorDebugmode. - Run the generated executable.
g++ -std=c++20 -o file_sorter main.cpp filesystem_utils.cpp
./file_sorter- ✅ Cross-platform: Works on Windows, Linux, and macOS
- ⚙️ Customizable: Easily change the destination folder or adjust file grouping logic
MIT License © José Barroso