Hello,
I want to execute one funtion each time a file gets written with new data (gets modified) and I'm using Python.
How can I do it?
Thanks in advance! :)
Hello,
I want to execute one funtion each time a file gets written with new data (gets modified) and I'm using Python.
How can I do it?
Thanks in advance! :)
If you want to monitor for changes in the file system using Python, see this article for pointers to libraries which can help you achieve this on different platforms.
Short summary of available libraries for different platforms:
Remember that your program needs to be running to handle file system events.