#NEWLINE# def _simplify_archive( self , path ) : #NEWLINE# #INDENT# '\n        Modifies |path| in place: If |path| is a directory containing exactly\n        one file / directory that is not ignored, then replace |path| with that\n        file / directory.\n        ' #NEWLINE# if ( not os . path . isdir ( path ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# files = [ f for f in os . listdir ( path ) if ( not self . _ignore_file_in_archive ( f ) ) ] #NEWLINE# if ( len ( files ) == 1 ) : #NEWLINE# #INDENT# self . _simplify_directory ( files , files [ 0 ] )