Skip to content

Instantly share code, notes, and snippets.

@00krishna
Created February 17, 2014 23:53
Show Gist options
  • Save 00krishna/9061723 to your computer and use it in GitHub Desktop.
Save 00krishna/9061723 to your computer and use it in GitHub Desktop.
Get list of files in directory
from os import listdir
from os.path import isfile, join
onlyfiles = [ f for f in listdir(mypath) if isfile(join(mypath,f)) ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment