original_docstring: 
          Close directory and all resources including datastore and event listener.
          
docstring: Close directory and all resources including datastore and event listener.
docstring_tokens: Close directory and all resources including datastore and event listener .
code: def close(self):
          """
          Close directory and all resources including datastore and event listener.
          """
          if self.event_sub:
              self.event_sub.deactivate()
          self.dir_store.close()
code_tokens: def close ( self ) : if self . event_sub : self . event_sub . deactivate ( ) self . dir_store . close ( )
short_docstring: Close directory and all resources including datastore and event listener.
short_docstring_tokens: Close directory and all resources including datastore and event listener .
comment: """
          Close directory and all resources including datastore and event listener.
          """