<human>:  list all files of a directory
<bot>:
for (dirpath, dirnames, filenames) in walk(mypath):
  f.extend(filenames)
  break

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.