MCPcopy
hub / github.com/apache/answer / CheckFileExist

Function CheckFileExist

pkg/dir/dir.go:37–40  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

35}
36
37func CheckFileExist(path string) bool {
38 f, err := os.Stat(path)
39 return err == nil && !f.IsDir()
40}
41
42func DirSize(path string) (int64, error) {
43 var size int64

Callers 7

initReservedUsernameFunction · 0.92
InstallI18nBundleFunction · 0.92
copyUIFilesFunction · 0.92
CheckConfigFileFunction · 0.92
ReplaceI18nFilesLocalFunction · 0.92
GetConnectionMethod · 0.92
RegisterStaticRouterMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected