Say I am reading and processing a file_A.log with inode 123 and the file_A.log is rotated to file_A _1.log with , now the file_A will be having inode 125 , how to know if the filename is changed or not and to proceed with processing file_A_1.log and then procees to file_A.log.
To be precise i would like to know the filename change has happened to a given inode or that a new file is created in the directory using python for cross platform.
I can run a task to keep a watch on the directory but i am expecting to get an event notification happened instead of getting known by a timer task.