Created
June 29, 2017 19:54
-
-
Save lesp/3ac1a0418906b9acd5e9afbb7317aab4 to your computer and use it in GitHub Desktop.
Find mp3s, or anything else in a directory
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
import os | |
files = os.listdir("/directory/with/files/in") | |
print(list(filter(lambda x: 'mp3' in x, files))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment