MCPcopy
hub / github.com/1Panel-dev/1Panel / Stat

Function Stat

core/utils/files/files.go:295–301  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

293}
294
295func Stat(path string) bool {
296 _, err := os.Stat(path)
297 if err != nil && os.IsNotExist(err) {
298 return false
299 }
300 return true
301}
302
303func GetFileMD5(filePath string) (string, error) {
304 file, err := os.Open(filePath)

Callers

nothing calls this directly

Calls 1

StatMethod · 0.45

Tested by

no test coverage detected