Skip to content

zhitoo/file-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-watcher 🕵️‍♂️👀

A simple and flexible CLI tool written in Python that watches a directory for file changes and runs a command automatically — perfect for automation and development workflows.


✨ Features

  • Watch any directory for file changes (recursively)
  • Run any custom shell command when a change happens
  • Ignore files/folders using a .watcherignore file
  • Easy to use CLI (powered by typer)
  • Lightweight and cross-platform

🚀 Installation

clone project
cd file-watcher
uv tool install .

:( Uninstallation

uv tool uninstall file-watcher

How can i use it

file-watcher --command "type your command here"

Run in backgroud?

touch .watcherignore

add watcher.log to .watcherignore file

nohup file-watcher --command "your command" > watcher.log 2>&1 &

Kill backgroud proccess

killall file-watcher

About

file watcehr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages