#NEWLINE# def _next_dir_gen( self , root ) : #NEWLINE# #INDENT# 'Generator for next directory element in the document.\n\n    Args:\n      root: root element in the XML tree.\n\n    Yields:\n      GCSFileStat for the next directory.\n    ' #NEWLINE# for e in root . getiterator ( common . _T_COMMON_PREFIXES ) : #NEWLINE# #INDENT# ( yield common . GCSFileStat ( ( ( e . _path + '/' ) + e . find ( common . _T_PREFIX ) . text ) , st_size = None , etag = None , st_ctime = None , is_dir = True ) ) #NEWLINE# e . clear ( ) #NEWLINE# #UNINDENT# ( yield None )