Skip to content

Instantly share code, notes, and snippets.

@GTimothee
Created June 12, 2018 09:43
Show Gist options
  • Save GTimothee/dfc51eed0c7e8655c9e1b120fdab2300 to your computer and use it in GitHub Desktop.
Save GTimothee/dfc51eed0c7e8655c9e1b120fdab2300 to your computer and use it in GitHub Desktop.
from os import walk
f = []
for (dirpath, dirnames, filenames) in walk(mypath):
f.extend(filenames)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment