def f(start): stack = [] def f1(start): for fname in os.listdir(start): path = os.path.join(start, fname) if os.path.isfile(path): stack.append(path) else: f1(path) f1(start) return stack
i feel s stupid right now forgot to call f1 any comments how to make this better? -- http://mail.python.org/mailman/listinfo/python-list