F
Fabian Steiner
Hello!
I am currently wondering how to write something like an "event loop".
For example, if I want to write a function that checks whether a file
was added or removed in a directory I would think of a "while 1: ..."
construct that checks the mtime of the directory. Is this the right way
to achieve the exepected result or are there any better ways?
Cheers,
Fabian
I am currently wondering how to write something like an "event loop".
For example, if I want to write a function that checks whether a file
was added or removed in a directory I would think of a "while 1: ..."
construct that checks the mtime of the directory. Is this the right way
to achieve the exepected result or are there any better ways?
Cheers,
Fabian