third_party/blink/tools/blinkpy/web_tests/layout_package/json_results_generator.py
def add_path_to_trie(path, value, trie):
    """Inserts a single flat directory path and associated value into a directory trie structure."""
    if not "/" in path:
        trie[path] = value
        return

    directory, _, rest = path.partition("/")
    if not directory in trie:
        trie[directory] = {}
    add_path_to_trie(rest, value, trie[directory])
Inserts a single flat directory path and associated value into a directory trie structure.
Inserts a single flat directory path and associated value into a directory trie structure.
Inserts a single flat directory path and associated value into a directory trie structure .
def add_path_to_trie(path, value, trie):
    if not "/" in path:
        trie[path] = value
        return
    directory, _, rest = path.partition("/")
    if not directory in trie:
        trie[directory] = {}
    add_path_to_trie(rest, value, trie[directory])
def add_path_to_trie ( path , value , trie ) : if not "/" in path : trie [ path ] = value return directory , _ , rest = path . partition ( "/" ) if not directory in trie : trie [ directory ] = { } add_path_to_trie ( rest , value , trie [ directory ] )
Inserts a single flat directory path and associated value into a directory trie structure.
Inserts a single flat directory path and associated value into a directory trie structure .
"""Inserts a single flat directory path and associated value into a directory trie structure."""
path
value
trie