file-monitoring

How to get a file close event in python

梦想与她 提交于 2019-11-30 19:09:50
Using python 2.7 on windows 7 64 bit machine. How to get a file close event: when file is opened in a new process of file opener (like notepad, wordpad which opens file everytime in new process of wordpad) when file is opened in a tab of file opener (like notepad++, which opens all files in new tab but there exist only a single process of notepad++ running) So, how to get file close event in above cases? Is it possible to achieve above cases through a common code? I am dealing with different file types bosnjak This has proven to be a very easy task for *nix systems, but on Windows, getting a

Is there a sophisticated file system monitor for Java which is freeware or open source? [closed]

孤街浪徒 提交于 2019-11-26 18:39:33
I'm looking for a Java library which can notify me about changes on the file system. I found some free libraries, but they all use brute-force detection, i.e. polling in regular intervals. And the other ones are always commercial. What I'm looking for is a library which uses the file monitor functions from the OS, i.e. FindFirstChangeNotification for Win32, FAM for Linux and whatever is available on other OS. I don't mind if brute-force is used as fallback, but for Windows and Linux it should use the available OS features. Brian Agnew JNotify seems to do what you require. Polling a filesystem

Is there a sophisticated file system monitor for Java which is freeware or open source? [closed]

六眼飞鱼酱① 提交于 2019-11-26 06:29:32
问题 I\'m looking for a Java library which can notify me about changes on the file system. I found some free libraries, but they all use brute-force detection, i.e. polling in regular intervals. And the other ones are always commercial. What I\'m looking for is a library which uses the file monitor functions from the OS, i.e. FindFirstChangeNotification for Win32, FAM for Linux and whatever is available on other OS. I don\'t mind if brute-force is used as fallback, but for Windows and Linux it