System.IO.FileSystemWatcher done creating event not exist

B

BK Kim

Hello.

I am trying to make an application that monitors a specific folder.

Once there is a new file copied, it needs to execute some methods.

However, I realized that Created event in System.IO.FileSystemWatcher fires
when there is a new file creating.

I may get a huge file which takes several seconds to be copied and I need to
execute some method after the copying is done.

Of course, I can use timer to wait for a few seconds but I personally want
avoid using timer.

Is there a good way to solve this problem?

Thanx in advance
 
A

Allen Anderson

I had this exact same problem. I found that so far though, last write
seems to catch when the file is done/closing.
 

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