diff options
| author | Aditya Naik | 2013-12-17 13:30:06 +0530 |
|---|---|---|
| committer | Aditya Naik | 2013-12-17 13:30:06 +0530 |
| commit | 46afb03adc287fa708252ab1c60095b3f39ddf64 (patch) | |
| tree | 9dcbaca15a4dd34031ab2b9faacd5567a55327e2 | |
| parent | f6eb04f42784cb5a093843654032c8bddd20f311 (diff) | |
added license boilerplates
| -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) |
