summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Naik2013-12-17 13:30:06 +0530
committerAditya Naik2013-12-17 13:30:06 +0530
commit46afb03adc287fa708252ab1c60095b3f39ddf64 (patch)
tree9dcbaca15a4dd34031ab2b9faacd5567a55327e2
parentf6eb04f42784cb5a093843654032c8bddd20f311 (diff)
added license boilerplates
-rw-r--r--paths.py12
1 files 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)