Update check file exist api