MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / PathExists

Function PathExists

common/utils.go:202–211  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

200}
201
202func PathExists(path string) (bool, error) {
203 _, err := os.Stat(path)
204 if err == nil {
205 return true, nil
206 }
207 if os.IsNotExist(err) {
208 return false, nil
209 }
210 return false, err
211}

Callers 1

InitTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected