(folder_path)
| 22 | |
| 23 | |
| 24 | def read_folder_files_content(folder_path): |
| 25 | files_content = {} |
| 26 | for filename in os.listdir(folder_path): |
| 27 | file_path = os.path.join(folder_path, filename) |
| 28 | # make sure it's a file not a directory |
| 29 | if os.path.isfile(file_path): |
| 30 | with open(file_path, "r") as file: |
| 31 | files_content[filename] = file.read() |
| 32 | return files_content |
| 33 | |
| 34 | |
| 35 | def fill_params_in_yaml(file_path, params): |
no test coverage detected