MCPcopy
hub / github.com/gotify/server / addTrailingSlashToPaths

Function addTrailingSlashToPaths

config/config.go:78–82  ·  view source on GitHub ↗
(conf *Configuration)

Source from the content-addressed store, hash-verified

76}
77
78func addTrailingSlashToPaths(conf *Configuration) {
79 if !strings.HasSuffix(conf.UploadedImagesDir, "/") && !strings.HasSuffix(conf.UploadedImagesDir, "\\") {
80 conf.UploadedImagesDir += string(filepath.Separator)
81 }
82}

Callers 1

GetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…