#NEWLINE# def _EntriesGenerator( self ) : #NEWLINE# #INDENT# 'Retrieves directory entries.\n\n    Since a directory can contain a vast number of entries using\n    a generator is more memory efficient.\n\n    Yields:\n      A path specification (instance of path.SQLiteBlobPathSpec).\n\n    Raises:\n      AccessError: if the access to list the directory was denied.\n      BackEndError: if the directory could not be listed.\n    ' #NEWLINE# table_name = getattr ( self . path_spec , 'table_name' , None ) #NEWLINE# if ( table_name is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# column_name = getattr ( self . path_spec , 'column_name' , None ) #NEWLINE# if ( column_name is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( self . _number_of_entries is None ) : #NEWLINE# #INDENT# path_spec = sqlite_blob_path_spec . SQLiteBlobPathSpec ( table_name = table_name , column_name = column_name , row_index = 0 , parent = self . path_spec . parent ) #NEWLINE# sub_file_entry = self . _file_system . GetFileEntryByPathSpec ( path_spec ) #NEWLINE# if ( not file_entry ) : #NEWLINE# #INDENT# self . _number_of_entries = 0 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . _number_of_entries = sub_file_entry . GetNumberOfRows ( ) #NEWLINE# #UNINDENT# #UNINDENT# for row_index in range ( 0 , self . _number_of_entries ) : #NEWLINE# #INDENT# ( yield sqlite_blob_path_spec . SQLiteBlobPathSpec ( table_name = table_name , column_name = column_name , row_index = row_index , parent = self . path_spec . parent ) )