sync directories.