MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / filesExist

Function filesExist

tensorflow/go/example_inception_inference_test.go:245–252  ·  view source on GitHub ↗
(files ...string)

Source from the content-addressed store, hash-verified

243}
244
245func filesExist(files ...string) error {
246 for _, f := range files {
247 if _, err := os.Stat(f); err != nil {
248 return fmt.Errorf("unable to stat %s: %v", f, err)
249 }
250 }
251 return nil
252}
253
254func download(URL, filename string) error {
255 resp, err := http.Get(URL)

Callers 1

modelFilesFunction · 0.85

Calls 1

StatMethod · 0.45

Tested by

no test coverage detected