MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / CreateOrOverWrite

Method CreateOrOverWrite

cli/pkg/common/fs.go:98–100  ·  view source on GitHub ↗
(filePath string, content string)

Source from the content-addressed store, hash-verified

96}
97
98func (fs *fileOperation) CreateOrOverWrite(filePath string, content string) error {
99 return writeToFile(filePath, content, true)
100}
101
102// fileName:文件名字(带全路径)
103// content: 写入的内容

Callers 4

newK8sUtilFunction · 0.80
ensureSSHConfigFileExistFunction · 0.80
SaveK8STempYamlMethod · 0.80
execPodFunction · 0.80

Calls 1

writeToFileFunction · 0.85

Tested by

no test coverage detected