service for file monitoring

"Martin v. Löwis" martin at
Sat Apr 21 02:12:30 CEST 2007

> well i tried reading that but that way i'll have to make the program
> monitor each and every directory.
> when a file is created or deleted or filename modified , a call must
> be made to the os kernel .
> isn't there any way i can utilize that with any api or package
> functions so that i can monitor the whole filesystem but at lesser
> expense of cpu n memory

On Windows W2k+, you can use the USN journal:

You may have to use ctypes or write an extension module to access that


More information about the Python-list mailing list