use pre_unshare hook, otherwise the share is already removed. Which means that we have no chance to determine which folder has to be updated