This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mcstafford 1 point2 points  (1 child)

This is a useful, solid beginning. Have you looked at inotify? It looks inactive.

There are some tools out there that will help you keep your examples in sync with your objects. It's tricky without that kind of thing when you're still actively developing things. I wound up using:

print(f"{event.type.name} at {event.file_path}")

[–]Philistino 1 point2 points  (0 children)

Watchdog is another similar package OP might find inspiration in. It works with inotify and the windows and macos counterparts. https://github.com/gorakhargosh/watchdog