Closed nskalis closed 6 years ago
Why not just do:
for type in type_names:
if type == "IN_CLOSE_WRITE":
yes, this is what I did:
if "IN_CLOSE_WRITE" in type_names:
I was wondering if was a declarative way to do that. anyways I am happy with it :)
hi,
and thanks a lot for this library, so useful :) may I ask you the following; how the original snippet that watches a directory (non-recursively) can be changed in order to watch for a specific event only, for example,
I do not wish to loop through
type_names
but I would like to get anevent
if and only if there is aIN_CLOSE_WRITE
file eventif I am interested only in IN_CLOSE_WRITE file events, how can I I specify that ? so that I can take action after that event takes place ?