

# https://www.globalsino.com/ICs/
# Very simple watchdog script to monitor the creation
# of folder and files in the direct folder only

from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import time

class ExampleHandler(FileSystemEventHandler):
    def on_created(self, event):
        print (event.src_path)

event_handler = ExampleHandler()
observer = Observer()
observer.schedule(event_handler, path=r"C:\0Python\images")
observer.start()
try:
    while True:
        time.sleep(1)
except KeyboardInterrupt:
    observer.stop()

observer.join()

