MCPcopy Index your code
hub / github.com/gotify/server / generateNonExistingImageName

Function generateNonExistingImageName

api/application.go:465–472  ·  view source on GitHub ↗
(imgDir string, gen func() string)

Source from the content-addressed store, hash-verified

463}
464
465func generateNonExistingImageName(imgDir string, gen func() string) string {
466 for {
467 name := gen()
468 if !exist(imgDir + name) {
469 return name
470 }
471 }
472}
473
474func ValidApplicationImageExt(ext string) bool {
475 switch strings.ToLower(ext) {

Callers 1

Calls 1

existFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…