diff options
Diffstat (limited to 'paths.py')
| -rw-r--r-- | paths.py | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ + +# Copyright 2013 Aditya Naik +# Licensed under the Apache License, Version 2.0 +# http://www.apache.org/licenses/LICENSE-2.0 + + """A simple module for creating lists of abspath of files in a directory. Also creates lists by isolating the files of the required extension.""" @@ -7,7 +13,7 @@ import sys def listpaths(path): - """get a list of all files""" + """Get a list of all files""" global filedir filedir=[] filepath=os.listdir(path) @@ -16,8 +22,8 @@ def listpaths(path): return filedir -def listreq(path,ext): - """this function will list all files in the specified path with the given extension""" +def listext(path,ext): + """This function will list all files in the specified path with the given extension""" global filedir filedir=[] filepath=os.listdir(path) |
