diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-06-01 14:54:03 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-06-01 14:54:03 +0200 |
| commit | b372f5a5601734a150a32651c507a1e9ead575a5 (patch) | |
| tree | 14f8fa513bbae677304106c3969080e12f695e01 /classification/files.py | |
| parent | 0d401089e9e72a8d9fb9b41d920126aa9fb23b05 (diff) | |
| download | emulator-bug-study-b372f5a5601734a150a32651c507a1e9ead575a5.tar.gz emulator-bug-study-b372f5a5601734a150a32651c507a1e9ead575a5.zip | |
classifier: iterates through mailing list
Diffstat (limited to 'classification/files.py')
| -rwxr-xr-x | classification/files.py | 16 |
1 files changed, 16 insertions, 0 deletions
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) |