MCPcopy Create free account
hub / github.com/apache/dubbo-go / write2File

Method write2File

config_center/file/impl.go:205–211  ·  view source on GitHub ↗
(fp string, value string)

Source from the content-addressed store, hash-verified

203}
204
205func (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
213func forceMkdirParent(fp string) error {
214 return createDir(getParentDirectory(fp))

Callers 1

PublishConfigMethod · 0.95

Calls 1

forceMkdirParentFunction · 0.85

Tested by

no test coverage detected