That is what I suspected.  So then we should not put this inside doCopyFile(), we should add additional args to doCopyFile() to optionally flush the file cache.