add over.file.filelist function

This commit is contained in:
Martin Sekera 2021-03-24 16:26:25 +01:00
parent 10311ffd46
commit f3fdf22e53
2 changed files with 19 additions and 4 deletions

View file

@ -54,3 +54,18 @@ def context_dir(path):
yield
finally:
os.chdir(previous)
# --------------------------------------------------
def filelist(d):
"""
Returns a filelist of d.
"""
files = []
for root, directories, filenames in os.walk(d):
for filename in filenames:
files.append(os.path.join(root, filename))
return files

View file

@ -2,7 +2,7 @@
# encoding: utf-8
major = 2 # VERSION_MAJOR_IDENTIFIER
minor = 1 # VERSION_MINOR_IDENTIFIER
# VERSION_LAST_MM 2.1
patch = 11 # VERSION_PATCH_IDENTIFIER
str = "2.1.11" # VERSION_STRING_IDENTIFIER
minor = 2 # VERSION_MINOR_IDENTIFIER
# VERSION_LAST_MM 2.2
patch = 0 # VERSION_PATCH_IDENTIFIER
str = "2.2.0" # VERSION_STRING_IDENTIFIER