O
Oleg Ogurok
Hi all,
It looks like FileSystemWatcher's Created event can be triggered while a
created file is still in use. For example, if I copy a file into the watched
directory, the event is triggered but then I have to wait for the copy
process to finish copying. If I try to open it, I get a mscorlib exception
saying "file is used by another process"
Is there a way to check whether or not the file is still in use?
Thanks,
--Oleg.
It looks like FileSystemWatcher's Created event can be triggered while a
created file is still in use. For example, if I copy a file into the watched
directory, the event is triggered but then I have to wait for the copy
process to finish copying. If I try to open it, I get a mscorlib exception
saying "file is used by another process"
Is there a way to check whether or not the file is still in use?
Thanks,
--Oleg.