Android Question recursive folder copy: when finished ?

peacemaker

Expert
Licensed User
This code is synchronous.
If so, the whole recursive loop should finish after all copied, correct ?
I found in my app that if to finish activity just after CopyFolder - many files\subforders are not copied yet.
If do not finish - all are OK. I guessed that many recursive calls are in the memory and the finish moment is not known well.
How to understand ?
 

peacemaker

Expert
Licensed User
So, in your recursive code each file copy should finish before next file copying without File.CopyAsync? But ... not finished.
 
Top