parameters: (path)
return_statement: return ret
docstring: Lists files in all subdirectories of |path|.
  
    Args:
      path: The path to list.
  
    Returns:
      A dict of {"name": (size, lastmod), ...}.
docstring_summary: Lists files in all subdirectories of |path|.
docstring_tokens: Lists files in all subdirectories of |path| .
function: def ListHostPathContents(path):
    """Lists files in all subdirectories of |path|.
  
    Args:
      path: The path to list.
  
    Returns:
      A dict of {"name": (size, lastmod), ...}.
    """
    if os.path.isfile(path):
      return {os.path.basename(path): _GetHostFileInfo(path)}
    ret = {}
    for root, dirs, files in os.walk(path):
      for d in dirs:
        if d.startswith('.'):
          dirs.remove(d)  # Prune the dir for subsequent iterations.
      for f in files:
        if f.startswith('.'):
          continue
        full_file_name = os.path.join(root, f)
        file_name = os.path.relpath(full_file_name, path)
        ret[file_name] = _GetHostFileInfo(full_file_name)
    return ret
function_tokens: def ListHostPathContents ( path ) : if os . path . isfile ( path ) : return { os . path . basename ( path ) : _GetHostFileInfo ( path ) } ret = { } for root , dirs , files in os . walk ( path ) : for d in dirs : if d . startswith ( '.' ) : dirs . remove ( d ) # Prune the dir for subsequent iterations. for f in files : if f . startswith ( '.' ) : continue full_file_name = os . path . join ( root , f ) file_name = os . path . relpath ( full_file_name , path ) ret [ file_name ] = _GetHostFileInfo ( full_file_name ) return ret