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