code: def collect_files(cmd, file_service, share, pattern=None):
      
      if not file_service:
          raise ValueError('missing parameter file_service')
  
      if not share:
          raise ValueError('missing parameter share')
  
      if not _pattern_has_wildcards(pattern):
          return [pattern]
  
      return glob_files_remotely(cmd, file_service, share, pattern)
docs: Search files in the the given file share recursively. Filter the files by matching their path to the given pattern.
      Returns a iterable of tuple (dir, name).