Skip to content

Instantly share code, notes, and snippets.

@oskarsh
Created May 8, 2019 21:07
Show Gist options
  • Save oskarsh/0f14e14efde621dc39e499ad7b9e3a4b to your computer and use it in GitHub Desktop.
Save oskarsh/0f14e14efde621dc39e499ad7b9e3a4b to your computer and use it in GitHub Desktop.
[getting each file inside a folder with extension]
index = [y for x in os.walk(base_path) for y in glob(os.path.join(x[0], '*.jpg'))]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment