def visit(arg, dirname, names):
    print dirname, arg
    for name in names:
        subname = os.path.join(dirname, name)
        if os.path.isdir(subname):
            print name % '  %s/'
        else:
            print '  %s' % name
    print
dataset/ETHPy150Open Akagi201/learning-python/ospath/ospath_walk.py/visit/swapped operands of `%`