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