Sync different directories' files.