Created
January 8, 2013 15:20
-
-
Save efazati/4484583 to your computer and use it in GitHub Desktop.
very simple file finder.
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 | |
x = os.listdir('.') | |
result = [] | |
for item in x: | |
if item.startswith("a"): | |
result.append(item) | |
print result |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment