process - How to catch file close event in python -
using python 2.7 on windows 7 64 bit machine. how file close event:
- when file opened in new process of file opener (like notepad, wordpad opens file everytime in new process of wordpad)
- when file opened in tab of file opener (like notepad++, opens files in new tab there exist single process of notepad++ running)
so, how file close event in above cases? possible achieve above cases through common code? dealing different file types.
it can solved scheme, when file opens, process handles it. , when closes, processes controls lost. so, can know whether file closed or not.
i posted in this q&a, , tried watchdog, pywatch , watcher not able file close event
Comments
Post a Comment