newbie: FileSystemWatcher

G

Guest

Hi,

I currently use the FileSystemWatcher class to hook any changes of a
specific file - but I still got a question: When I specify LastAccess as a
NotifyFilter, when exactly is my handler called? After some new content was
written/read from file and the file is closed - or before this happens?

Thanks
Peter
 
M

MasterGaurav

It will be called multiple times in this scenario:

1. When the file is opened for writing.
2. When the writing is complete and file closed.

During writing, the access time is not modified. Only after the handle
is closed does the access time gets modified.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
----------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top