Change return value of mirror_file