Skip to content

Instantly share code, notes, and snippets.

@mizunototori
Created May 16, 2016 04:06
Show Gist options
  • Select an option

  • Save mizunototori/2819cd5b7d48fd243b4d14a4a871a705 to your computer and use it in GitHub Desktop.

Select an option

Save mizunototori/2819cd5b7d48fd243b4d14a4a871a705 to your computer and use it in GitHub Desktop.
def find_all_files(directory):
for root, dirs, files in os.walk(directory):
yield root
for file in files:
yield os.path.join(root, file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment