Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Filesystem events monitoring with Python [events.py 2]
def on_created(self, event):
file_size = -1
while file_size != os.path.getsize(event.src_path):
file_size = os.path.getsize(event.src_path)
time.sleep(1)
self.process(event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.