How to determine when file copying is complete?

How to determine when file copying is complete I use C #

edit: we copy files over the network from one computer to another. my task is to browse the directory and perform some actions after copying files to it.

+3
source share
4 answers

If you use File.Copy(), then this operation ends after the file is actually copied.

+6
source

Try to find the FileSystemWatcher event created .

, , , . , the system raises a Created event

+3

. File open write , , : FileStream fs = f.OpenWrite();

, , .

+1

Source: https://habr.com/ru/post/1737299/


All Articles