Check if input_name is a file before compression