(self, new_l_path, f_path, force)
Actually apply the link convertion
Actually apply the link convertion
Actually apply the link convertion
def _link_change_apply(self, new_l_path, f_path, force):
        """Actually apply the link convertion"""
        p_path = os.path.realpath(os.path.dirname(f_path))
        if force and not os.access(p_path, os.W_OK):
            os.chmod(p_path,
                     stat.S_IMODE(os.stat(p_path).st_mode) | stat.S_IWUSR)
            os.remove(f_path)
            os.symlink(new_l_path, f_path)
            os.chmod(p_path,
                     stat.S_IMODE(os.stat(p_path).st_mode) & ~stat.S_IWUSR)
        else:
            os.remove(f_path)
            os.symlink(new_l_path, f_path)
def _link_change_apply ( self , new_l_path , f_path , force ) : p_path = os . path . realpath ( os . path . dirname ( f_path ) ) if force and not os . access ( p_path , os . W_OK ) : os . chmod ( p_path , stat . S_IMODE ( os . stat ( p_path ) . st_mode ) | stat . S_IWUSR ) os . remove ( f_path ) os . symlink ( new_l_path , f_path ) os . chmod ( p_path , stat . S_IMODE ( os . stat ( p_path ) . st_mode ) & ~ stat . S_IWUSR ) else : os . remove ( f_path ) os . symlink ( new_l_path , f_path )