summary refs log tree commit diff stats
path: root/classification/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'classification/files.py')
-rwxr-xr-xclassification/files.py16
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)