<s> import os <EOL> from image_filer . utils . zip import unzip <EOL> def generic_handle_file ( file , original_filename ) : <EOL> """<STR_LIT>""" <EOL> files = [ ] <EOL> filetype = os . path . splitext ( original_filename ) [ <NUM_LIT:1> ] . lower ( ) <EOL> if filetype == '<STR_LIT>' : <EOL> unpacked_files = unzip ( file ) <EOL> for ufile , ufilename in unpacked_files : <EOL> files += generic_handle_file ( ufile , ufilename ) <EOL> else : <EOL> files . append ( ( file , original_filename ) ) <EOL> return files </s>
