#NEWLINE# def _get_bucket_list_prefix( self , path ) : #NEWLINE# #INDENT# parts = path . split ( self . separator ) #NEWLINE# if ( len ( parts ) == 1 ) : #NEWLINE# #INDENT# search = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# search = ( self . separator . join ( parts [ : ( - 1 ) ] ) + search . separator ) #NEWLINE# #UNINDENT# return search