fork download
  1. def walk(dir):
  2. dirs = []
  3. for name in os.listdir(dir):
  4. path = os.path.join(dir, name)
  5. if os.path.isfile(path):
  6. dirs.append(path)
  7. else:
  8. dirs.extend(walk(path))
  9. return dirs
Success #stdin #stdout 0.02s 9984KB
stdin
Standard input is empty
stdout
Standard output is empty