"""A simple module for creating lists of abspath of files in a directory. Also creates lists by isolating the files of the required extension.""" import re import os import sys def listpaths(path): """get a list of all files""" global filedir filedir=[] filepath=os.listdir(path) for filename in filepath: filedir.append(os.path.join(os.path.abspath(path),filename)) return filedir def listreq(path,ext): """this function will list all files in the specified path with the given extension""" global filedir filedir=[] filepath=os.listdir(path) for filename in filepath: filedir.append(os.path.join(os.path.abspath(path),filename)) i=0 while i