Created
September 10, 2013 14:48
-
-
Save dufferzafar/6510534 to your computer and use it in GitHub Desktop.
List Files In Current 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 | |
# Traverse the current working directory | |
for file in os.listdir(os.getcwd()): | |
print(os.path.splitext(file)[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment