Skip to content

Instantly share code, notes, and snippets.

@ggoral
ggoral / watcher.py
Created July 2, 2019 15:42 — forked from alfakini/watcher.py
Filesystem events monitoring with Python [watcher.py]
import sys
import time
from watchdog.observers import Observer
from .events import ImagesEventHandler
class ImagesWatcher:
def __init__(self, src_path):
self.__src_path = src_path
self.__event_handler = ImagesEventHandler()