Skip to content

Instantly share code, notes, and snippets.

@dufferzafar
Created September 10, 2013 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dufferzafar/6510534 to your computer and use it in GitHub Desktop.
Save dufferzafar/6510534 to your computer and use it in GitHub Desktop.
List Files In Current Directory
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