Description
I was looking for something that could tell me when a file has been modified into a specific directory, I found that with Python and Linux, you can use the system call FCNTL.
Solution
The system call FCNTL helps you to monitor a directory and call a personalized function when it is happening.
Below you can find an example that I found on Stack Overflow.
I was looking for something that could tell me when a file has been modified into a specific directory, I found that with Python and Linux, you can use the system call FCNTL.
Solution
The system call FCNTL helps you to monitor a directory and call a personalized function when it is happening.
Below you can find an example that I found on Stack Overflow.
No comments:
Post a Comment