Skip to content

Instantly share code, notes, and snippets.

@haradreborn
Created December 2, 2014 12:45
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 haradreborn/d44f07b737ecf11d64f5 to your computer and use it in GitHub Desktop.
Save haradreborn/d44f07b737ecf11d64f5 to your computer and use it in GitHub Desktop.
Get list of files
from os import listdir
from os.path import isfile, join
def get_file_list(self, tmp_path):
files = [ f for f in listdir(tmp_path) if isfile(join(tmp_path,f)) ]
return files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment