(fp string, value string)
| 203 | } |
| 204 | |
| 205 | func (fsdc *FileSystemDynamicConfiguration) write2File(fp string, value string) error { |
| 206 | if err := forceMkdirParent(fp); err != nil { |
| 207 | return perrors.WithStack(err) |
| 208 | } |
| 209 | |
| 210 | return os.WriteFile(fp, []byte(value), os.ModePerm) |
| 211 | } |
| 212 | |
| 213 | func forceMkdirParent(fp string) error { |
| 214 | return createDir(getParentDirectory(fp)) |
no test coverage detected