FileSystemWatcher Question

  • Thread starter Thread starter rhaazy
  • Start date Start date
R

rhaazy

I have a file that is being downloaded to my computer. Can
filesystemwatcher react to a file upon being completely downloaded? I
need an app that automates the process of moving and modifying the file
once it has been downloaded.
 
Hi,

No really, you can get a notification when the file is created, not when the
other app finish to download it.

Can you modify the download code? if so do something like creating another
file with the same name and an extension like .flag when the main file is
downloaded, then monitor the *.flag files, when you see this you know the
other file is ready to be processed.

If not you could detect when a new file is created then insert it in a Queue
for example then try to access it after a period of time until it's
accesible. While it's being downlaoded you will get an exception so be ready
to handle it.
 

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

Back
Top