From f3fdf22e530cf51dd86775ea57e8308b156ea0e1 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Wed, 24 Mar 2021 16:26:25 +0100 Subject: [PATCH] add over.file.filelist function --- over/file.py | 15 +++++++++++++++ over/version.py | 8 ++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/over/file.py b/over/file.py index e3e4450..98b7a5d 100644 --- a/over/file.py +++ b/over/file.py @@ -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 diff --git a/over/version.py b/over/version.py index 23d8ef3..61bd81d 100644 --- a/over/version.py +++ b/over/version.py @@ -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