When syncing folders, read all data first, then process

Bug: 3353035

Change-Id: I80212b225eae48d0351f47f0d601f77578d2fc96
3 files changed