summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)