We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add functionality - new GUI or enhancement - to monitor a folder and process data as it is saved in real-time.
The text was updated successfully, but these errors were encountered:
This is a simple but perhaps useful approach:
import os, time path_to_watch = "." before = dict ([(f, None) for f in os.listdir (path_to_watch)]) while 1: time.sleep (10) after = dict ([(f, None) for f in os.listdir (path_to_watch)]) added = [f for f in after if not f in before] removed = [f for f in before if not f in after] if added: print "Added: ", ", ".join (added) if removed: print "Removed: ", ", ".join (removed) before = after
from http://timgolden.me.uk/python/win32_how_do_i/watch_directory_for_changes.html
Sorry, something went wrong.
Or threaded, and use watchdog: https://stackoverflow.com/questions/16745507/tkinter-how-to-use-threads-to-preventing-main-event-loop-from-freezing/16747734#16747734
watchdog
Paradoxdruid
No branches or pull requests
Add functionality - new GUI or enhancement - to monitor a folder and process data as it is saved in real-time.
The text was updated successfully, but these errors were encountered: