diff options
Diffstat (limited to 'classification/files.py')
| -rwxr-xr-x | classification/files.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/classification/files.py b/classification/files.py deleted file mode 100755 index 65efda6ff..000000000 --- a/classification/files.py +++ /dev/null @@ -1,16 +0,0 @@ -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) |