modify get_file_by_id and get_file_by_name add clear()
modify get_file_by_name and get_file_by_id