def listdir(path):
    try:
        cached_mtime, list = cache[path]
        del cache[path]
    except KeyError:
        cached_mtime, list = -1, []
    mtime = os.stat(path).st_mtime
    if mtime != cached_mtime:
        list = os.listdir(path)
        list.sort()
    cache[path] = mtime, list
    return list
JRPC test: configuration.gs.setConfiguration
dataset/ETHPy150Open Southpaw-TACTIC/TACTIC/src/context/client/tactic-api-python-4.0.api04/Lib/dircache.py/listdir--crossover with--dataset/ETHPy150Open satnet-project/server/services/configuration/tests/jrpc/test_segments.py/JRPCSegmentsTest.test_sc_set_configuration