watch the change of the folder and sync the files