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