Skip to content

AlexMayka/pycli-file-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🗂 PyCLI File Manager

Lightweight command-line file manager built in Python

Python Tests


📁 11 commands

full file ops

🧪 Tested

unit test suite

📝 Logged

all operations

🔌 Extensible

command dictionary

💡 What It Does

An interactive CLI tool for navigating and managing files directly from the terminal:

  • 📁 Navigatecd, ls, pwd, info
  • 📄 Filestouch, cat, write, rm
  • 📂 Directoriesmkdir, rmdir
  • 📝 Logging — every operation is logged via decorator
  • Help — built-in command reference

🚀 Quick Start

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

🏗️ Architecture

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

🛠 Tech Stack

Technology Purpose
🐍 Python 3.10+ Core language
📂 pathlib + os File system operations
🧪 unittest Test framework
📝 logging Operation logging decorator

🧪 Tests

python -m unittest discover tests

License

MIT

About

Lightweight command-line file manager built in Python. Supports directory navigation (cd, ls, pwd), file operations (touch, cat, write, rm), folder management (mkdir, rmdir), logging decorator, and a full unit test suite.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages