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.py
Then 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
exit
python -m unittest discover tests
fileman/
├── file_manager/
│ ├── files/
│ ├── directories/
│ └── navigating/
├── loggin/
├── tests/
└── main.py
- Python 3.10+
- unittest
- logging
- pathlib
- os