Skip to content

A lightweight Python CLI file manager with support for navigation, file operations, and directory management. Includes logging and unit tests.

Notifications You must be signed in to change notification settings

AlexMayka/pycli-file-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧰 fileman — Python CLI File Manager

fileman is a lightweight Python command-line file manager.
It supports file and directory operations, file system navigation, logging, and includes unit tests.


🚀 Features

  • 📁 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

🖥️ Usage

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

🧪 Running Tests

python -m unittest discover tests

🗂️ Project Structure

fileman/
├── file_manager/
│   ├── files/
│   ├── directories/
│   └── navigating/
├── loggin/
├── tests/
└── main.py

🛠️ Technologies

  • Python 3.10+
  • unittest
  • logging
  • pathlib
  • os

About

A lightweight Python CLI file manager with support for navigation, file operations, and directory management. Includes logging and unit tests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages