core: A function for diffing synced folders