def _GetPathDict(root, path):
  # |path| will eventually be empty (in the recursive calls) if it was initially
  # relative; otherwise it will eventually end up as '\', 'D:\', etc.
  if not path or path.endswith(os.sep):
    return root
  parent, folder = os.path.split(path)
  parent_dict = _GetPathDict(root, parent)
  if parent_dict not in folder:
    parent_dict[folder] = dict()
  return parent_dict[folder]
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/generator/msvs.py/_GetPathDict/swapped operands of `not in`