fileman is a lightweight Python command-line file manager.
It supports file and directory operations, file system navigation, logging, and includes unit tests.
- 📁
cd,ls,pwd,info— directory navigation and info - 📄
touch,cat,write,rm— file operations - 📂
mkdir,rmdir— directory creation and deletion - 🧪 Unit tests for core components (
unittest) - 📜 Logging decorator with file output
- 🧠 Extensible command dictionary structure
python main.pyThen interact with the CLI using commands like:
cd path/to/dir
ls
pwd
touch file.txt
cat file.txt
write file.txt "Hello, world!"
rm file.txt
mkdir new_folder
rmdir new_folder
info file.txt
help
exitpython -m unittest discover testsfileman/
├── file_manager/
│ ├── files/
│ ├── directories/
│ └── navigating/
├── loggin/
├── tests/
└── main.py
- Python 3.10+
- unittest
- logging
- pathlib
- os