#NEWLINE# def _all_items( self , node ) : #NEWLINE# #INDENT# 'Generator yielding all items under a VFS node.\n        ' #NEWLINE# if isinstance ( node , int ) : #NEWLINE# #INDENT# ( yield self . lib . get_item ( node ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# for ( name , itemid ) in sorted ( node . files . iteritems ( ) ) : #NEWLINE# #INDENT# for v in self . _all_items ( itemid ) : #NEWLINE# #INDENT# ( yield subdir ) #NEWLINE# #UNINDENT# #UNINDENT# for ( name , subdir ) in sorted ( node . dirs . iteritems ( ) ) : #NEWLINE# #INDENT# for v in self . _all_items ( subdir ) : #NEWLINE# #INDENT# ( yield v )