Created
May 8, 2019 21:07
-
-
Save oskarsh/0f14e14efde621dc39e499ad7b9e3a4b to your computer and use it in GitHub Desktop.
[getting each file inside a folder with extension]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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