def _scan_directory(self, path, analyzer_store):
    '\n        Does the real indexing. Iterates through the directory using DFS, and invokes the registered analyzers to\n        analyze and store the data.\n\n        Parameters\n        ----------\n        path : str\n            The path to enumerate.\n        analyzers : PathAnalyzerStore\n            The PathAnalyzerStore to use.\n        '
    for current_file in os.listdir(path):
        current_path = os.path.join(path, current_file)
        if (self._current_depth >= self._max_depth):
            return
        if os.path.isdir(current_path):
            self._enter(current_file)
            self._scan_directory(current_path, analyzer_store)
            self._leave()
        else:
            self._analyze_file(current_path, analyzer_store)
Does the real indexing. Iterates through the directory using DFS, and invokes the registered analyzers to
analyze and store the data.

Parameters
----------
path : str
    The path to enumerate.
analyzers : PathAnalyzerStore
    The PathAnalyzerStore to use.
def _scan_directory(self, path, analyzer_store):
    '\n        Does the real indexing. Iterates through the directory using DFS, and invokes the registered analyzers to\n        analyze and store the data.\n\n        Parameters\n        ----------\n        path : str\n            The path to enumerate.\n        analyzers : PathAnalyzerStore\n            The PathAnalyzerStore to use.\n        '
    for current_file in os.listdir(path):
        current_path = os.path.join(path, current_file)
        if (self._current_depth >= self._max_depth):
            return
        if os.path.isdir(current_path):
            self._enter(current_file)
            self._scan_directory(current_path, analyzer_store)
            self._leave()
        else:
            self._analyze_file(current_path, analyzer_store)