From 46afb03adc287fa708252ab1c60095b3f39ddf64 Mon Sep 17 00:00:00 2001 From: Aditya Naik Date: Tue, 17 Dec 2013 13:30:06 +0530 Subject: added license boilerplates --- paths.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/paths.py b/paths.py index f0c55e1..7b3d64a 100644 --- a/paths.py +++ b/paths.py @@ -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) -- cgit v1.2.3