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

Method AppendToFile

cli/pkg/common/fs.go:104–106  ·  view source on GitHub ↗

fileName:文件名字(带全路径) content: 写入的内容

(filePath string, content string)

Source from the content-addressed store, hash-verified

102// fileName:文件名字(带全路径)
103// content: 写入的内容
104func (fs *fileOperation) AppendToFile(filePath string, content string) error {
105 return writeToFile(filePath, content, false)
106}
107
108// 指定路径是否存在
109func (fs *fileOperation) IsExist(filePath string) bool {

Callers 1

Calls 1

writeToFileFunction · 0.85

Tested by

no test coverage detected