L
L
lksndr2015-11-11 22:01:37
Mono
lksndr, 2015-11-11 22:01:37

How can I programmatically detect that a file has been copied?

Hello!
I use FileSystemWatcher to watch the directory. But when copying large files, the following problems arise:
1) When the Created event occurs, the file may not have been fully copied yet.
2) The Changed event can be generated several times, which does not suit me.
Tell me, is there a way to determine that the file is copied completely)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zelimkhan Beltoev, 2015-11-11
@lksndr

Learn to use searches and queries like "FileSystemWatcher wait for complete": stackoverflow.com/questions/10982104/wait-until-fi...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question