Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

To run this:

  • pip3 install -r requirements.txt
  • python3 controller.py --help Output:
usage: controller.py [-h] [-d WATCH_DELAY] [-r] [-p PATTERN] [--watch-directories] path

Watchdog script for watching for files & directories' changes

positional arguments:
  path

optional arguments:
  -h, --help            show this help message and exit
  -d WATCH_DELAY, --watch-delay WATCH_DELAY
                        Watch delay, default is 1
  -r, --recursive       Whether to recursively watch for the path's children, default is False
  -p PATTERN, --pattern PATTERN
                        Pattern of files to watch, default is .txt,.trc,.log
  --watch-directories   Whether to watch directories, default is True
  • For example, watching the path E:\watchdog recursively for log and text files:
    python controller.py E:\watchdog --recursive -p .txt,.log
    
Morty Proxy This is a proxified and sanitized view of the page, visit original site.