code: def _CheckIsDirectory(self, file_entry):
      
      if definitions.FILE_ENTRY_TYPE_DIRECTORY not in self._file_entry_types:
        return False
      return file_entry.IsDirectory()
docs: Checks the is_directory find specification.
  
      Args:
        file_entry (FileEntry): file entry.
  
      Returns:
        bool: True if the file entry matches the find specification, False if not.