G
Guest
Hello,
I could use a little help from you Gurus out there. I have an aplication
that watches a directory and detects when a PGP encrypted file lands in the
directory and starts a process that decrypts it and parses the resulting
contents. I am using the FileSystemWatcher's Created event to detect when
the file arrives. The problem I have is that these files are large(5-10
megs) and they are being transfered over a limited pipe. I don't want to
start the decryption and parsing until they are done downloading but I can't
seem to find a straightforward way of sorting out when that is. The
FileSystemWatcher Created event fires off as soon as the file starts to hit
the directory and it kicks off my other processes to early.
Does anyone have a way to determine when the file is done loading? (note -
I have no idea how long the file will take to download or how big it may be.)
Thanks for any help,
Doug
I could use a little help from you Gurus out there. I have an aplication
that watches a directory and detects when a PGP encrypted file lands in the
directory and starts a process that decrypts it and parses the resulting
contents. I am using the FileSystemWatcher's Created event to detect when
the file arrives. The problem I have is that these files are large(5-10
megs) and they are being transfered over a limited pipe. I don't want to
start the decryption and parsing until they are done downloading but I can't
seem to find a straightforward way of sorting out when that is. The
FileSystemWatcher Created event fires off as soon as the file starts to hit
the directory and it kicks off my other processes to early.
Does anyone have a way to determine when the file is done loading? (note -
I have no idea how long the file will take to download or how big it may be.)
Thanks for any help,
Doug