From b372f5a5601734a150a32651c507a1e9ead575a5 Mon Sep 17 00:00:00 2001 From: Christian Krinitsin Date: Sun, 1 Jun 2025 14:54:03 +0200 Subject: classifier: iterates through mailing list --- classification/files.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 classification/files.py (limited to 'classification/files.py') diff --git a/classification/files.py b/classification/files.py new file mode 100755 index 00000000..65efda6f --- /dev/null +++ b/classification/files.py @@ -0,0 +1,16 @@ +import os + +def list_files_recursive(path='.'): + result = [] + for entry in os.listdir(path): + full_path = os.path.join(path, entry) + if os.path.isdir(full_path): + result = result + list_files_recursive(full_path) + else: + result.append(full_path) + return result + +if __name__ == "__main__": + directory_path = '../gitlab/issues_text' + arr = list_files_recursive(directory_path) + print(arr) -- cgit 1.4.1