code: def crawl_result_path(result_path, include_log):
      
      result = {
          'logs': [],
          'args': [],
          'commands': [],
          'snapshots': []
      }
  
      if os.path.isdir(result_path):
          if include_log:
              result['logs'] = load_result_json(result_path, 'log')
          result['args'] = load_result_json(result_path, 'args')
          result['commands'] = load_result_json(result_path, 'commands')
  
          snapshots = [
              x for x in os.listdir(result_path) if x.count('snapshot_iter_')
          ]
          snapshots.sort()
          result['snapshots'] = snapshots
  
      return result
docs: crawl_result_path.