Lightweight command-line file manager built in Python
| full file ops | unit test suite | all operations | command dictionary |
An interactive CLI tool for navigating and managing files directly from the terminal:
- 📁 Navigate —
cd,ls,pwd,info - 📄 Files —
touch,cat,write,rm - 📂 Directories —
mkdir,rmdir - 📝 Logging — every operation is logged via decorator
- ❓ Help — built-in command reference
git clone https://github.com/AlexMayka/pycli-file-manager.git
cd pycli-file-manager
python main.py> ls
> mkdir projects
> cd projects
> touch notes.txt
> write notes.txt "Hello, world!"
> cat notes.txt
Hello, world!
> info notes.txt
> help
> exit
file_manager/
├── files/ → File operations (touch, cat, write, rm)
├── directories/ → Directory operations (mkdir, rmdir)
└── navigating/ → Navigation (cd, ls, pwd, info)
loggin/ → Logging decorator
tests/ → Unit tests (unittest)
main.py → CLI entry point
| Technology | Purpose | |
|---|---|---|
| 🐍 | Python 3.10+ | Core language |
| 📂 | pathlib + os | File system operations |
| 🧪 | unittest | Test framework |
| 📝 | logging | Operation logging decorator |
python -m unittest discover testsMIT