def list_dir(base, recursive=True):
    if recursive:
        for root, dirnames, filenames in walk(base):
            for filename in filenames:
                yield abspath(join(root, filename))
    else:
        for f in listdir(base):
            yield abspath(f)
Test basic operations.
dataset/ETHPy150Open thasso/pyjip/jip/utils.py/list_dir--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/words/test/test_jabberclient.py/XMPPAuthenticatorTest.testBasic