MCPcopy
hub / github.com/github/gh-ost / TouchFile

Function TouchFile

go/base/utils.go:38–44  ·  view source on GitHub ↗
(fileName string)

Source from the content-addressed store, hash-verified

36}
37
38func TouchFile(fileName string) error {
39 f, err := os.OpenFile(fileName, os.O_APPEND|os.O_CREATE, 0755)
40 if err != nil {
41 return err
42 }
43 return f.Close()
44}
45
46// StringContainsAll returns true if `s` contains all non empty given `substrings`
47// The function returns `false` if no non-empty arguments are given.

Calls 1

CloseMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…