L
Lukas Meyer
Hello,
I'm trying to detect changes in a directory. E.g if someone crates a
file, i'll execute another function on this file.
I tried to solve this by creating a loop that permanently checks the
contents of this directory with os.listdir() and compares it with the
one before. But this isn't really working properly.
Can anyone give me a hint to get this working?
best regards,
Lukas
I'm trying to detect changes in a directory. E.g if someone crates a
file, i'll execute another function on this file.
I tried to solve this by creating a loop that permanently checks the
contents of this directory with os.listdir() and compares it with the
one before. But this isn't really working properly.
Can anyone give me a hint to get this working?
best regards,
Lukas