add updateFile and trashFile

trashFile function and updata function.