| import os | |
| __all__ = ["get_files"] | |
| def get_files(path): | |
| all_files = [] | |
| for root, dirs, files in os.walk(path): | |
| for file in files: | |
| file_path = os.path.join(root, file) | |
| all_files.append(file_path) | |
| return all_files | |
| import os | |
| __all__ = ["get_files"] | |
| def get_files(path): | |
| all_files = [] | |
| for root, dirs, files in os.walk(path): | |
| for file in files: | |
| file_path = os.path.join(root, file) | |
| all_files.append(file_path) | |
| return all_files | |