MCPcopy
hub / github.com/micro-editor/micro / writeFile

Function writeFile

internal/action/bindings.go:27–29  ·  view source on GitHub ↗
(name string, txt []byte)

Source from the content-addressed store, hash-verified

25}
26
27func writeFile(name string, txt []byte) error {
28 return util.SafeWrite(name, txt, false)
29}
30
31func createBindingsIfNotExist(fname string) {
32 if _, e := os.Stat(fname); errors.Is(e, fs.ErrNotExist) {

Callers 3

createBindingsIfNotExistFunction · 0.70
TryBindKeyFunction · 0.70
UnbindKeyFunction · 0.70

Calls 1

SafeWriteFunction · 0.92

Tested by

no test coverage detected