original_docstring: 
          Scan all files for any content matches.
  
          Args:
              expressions (CazRegExp[]) List of regular expressions for content comparison
          
docstring: Scan all files for any content matches.
  Args:
  expressions (CazRegExp[]) List of regular expressions for content comparison
docstring_tokens: Scan all files for any content matches . Args : expressions ( CazRegExp [] ) List of regular expressions for content comparison
code: def scan_files(self, temp_dir, expressions):
          """
          Scan all files for any content matches.
  
          Args:
              expressions (CazRegExp[]) List of regular expressions for content comparison
          """
          matches = []
  
          for f in self.folders:
              try:
                  res = self.client.files_list_folder(f, recursive=True)
  
                  while True:
                      for x in res.entries:
                          # DBX FileMetadata/FolderMetadata
                          if isinstance(x, FileMetadata):
                              f_path = create_temp_name(temp_dir, x.name)
                              try:
                                  # If it's a file... download and process
                                  self.client.files_download_to_file(f_path, x.path_display)
                                  logger.debug("Processing file {}...{}".format(x.name, f_path))
                                  matches.extend(search_content(f_path, expressions))
                              except Exception as ex:
                                  logger.error("Unable to parse contents in file {}. {}".format(x.name,
                                                                                                ex))
  
                              try:
                                  # Clean up the temporary file
                                  os.remove(f_path)
                              except Exception as ex:
                                  logger.error("Unable to clean up temporary file {}. {}".format(f_path,
                                                                                                 ex))
  
                      if not res.has_more:
                          break
                      else:
                          # Get the next set
                          res = self.client.files_list_folder_continue(res.cursor)
  
              except Exception as ex:
                  logger.error("Unable to process folder {}. {}".format(f, ex))
  
          return matches
code_tokens: def scan_files ( self , temp_dir , expressions ) : matches = [ ] for f in self . folders : try : res = self . client . files_list_folder ( f , recursive = True ) while True : for x in res . entries : if isinstance ( x , FileMetadata ) : f_path = create_temp_name ( temp_dir , x . name ) try : self . client . files_download_to_file ( f_path , x . path_display ) logger . debug ( "Processing file {}...{}" . format ( x . name , f_path ) ) matches . extend ( search_content ( f_path , expressions ) ) except Exception as ex : logger . error ( "Unable to parse contents in file {}. {}" . format ( x . name , ex ) ) try : os . remove ( f_path ) except Exception as ex : logger . error ( "Unable to clean up temporary file {}. {}" . format ( f_path , ex ) ) if not res . has_more : break else : res = self . client . files_list_folder_continue ( res . cursor ) except Exception as ex : logger . error ( "Unable to process folder {}. {}" . format ( f , ex ) ) return matches
short_docstring: Scan all files for any content matches.
short_docstring_tokens: Scan all files for any content matches .
comment: """
          Scan all files for any content matches.
  
          Args:
              expressions (CazRegExp[]) List of regular expressions for content comparison
          """$SEP$# DBX FileMetadata/FolderMetadata$SEP$# If it's a file... download and process$SEP$# Clean up the temporary file$SEP$# Get the next set