MCPcopy Create free account
hub / github.com/astercloud/aster / FileExists

Method FileExists

pkg/tools/builtin/testutils.go:88–91  ·  view source on GitHub ↗

FileExists 检查文件是否存在

(path string)

Source from the content-addressed store, hash-verified

86
87// FileExists 检查文件是否存在
88func (th *TestHelper) FileExists(path string) bool {
89 _, err := os.Stat(path)
90 return err == nil
91}
92
93// GetTestDataPath 获取测试数据文件路径
94func (th *TestHelper) GetTestDataPath(name string) string {

Callers

nothing calls this directly

Calls 1

StatMethod · 0.65

Tested by

no test coverage detected