code: def get_files(self, path):
          
  
          if os.path.isfile(path):
              self.logger.debug('Called with single file as target: {0}'.format(path))
              yield path
              return
  
          self.logger.debug('Getting list of files in {0}'.format(path))
  
          try:
              for f in os.listdir(path):
                  cur_file = os.path.join(path, f)
                  if f[0] != '.' and os.path.isfile(cur_file):
                      yield cur_file
          except OSError:
              self.logger.error('Could not read files from {0}'.format(path))
              raise
docs: Yields full path and filename for each file that exists in the given directory. Will
          ignore hidden files (that start with a ".") and directories
          :param path: Directory or filename
          :return: