Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • these pynotify and inotify are for linux. I want for windows. We cant install these libraries on windows
    – imp
    Commented Mar 14, 2014 at 18:51
  • all the above libraries and stackoverflow.com/questions/182197/… are for monitoring file changes. But I do not find any event to monitor file close.
    – imp
    Commented Mar 18, 2014 at 9:25
  • Ofcourse there are such events. Pynotify for example implements the close_write, close_nowrite and close events, which do exactly what you want. On Windows, Watcher implements IN_CLOSE_WRITE and IN_CLOSE_NOWRITE to detect such events.
    – bosnjak
    Commented Mar 18, 2014 at 14:18
  • can you please elaborate Watcher, or its documentation link
    – imp
    Commented Mar 18, 2014 at 14:28
  • I'm sorry, I don't have access to windows at this time, or I would try it myself. The documentation is quite short, but it shows that you should create an watcher.Watcher object and set its flags property to a desired event.
    – bosnjak
    Commented Mar 18, 2014 at 15:32