MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / initURL

Function initURL

internal/bootstrap/config.go:185–194  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185func initURL() {
186 if !strings.Contains(conf.Conf.SiteURL, "://") {
187 conf.Conf.SiteURL = utils.FixAndCleanPath(conf.Conf.SiteURL)
188 }
189 u, err := url.Parse(conf.Conf.SiteURL)
190 if err != nil {
191 utils.Log.Fatalf("can't parse site_url: %+v", err)
192 }
193 conf.URL = u
194}
195
196func CleanTempDir() {
197 files, err := os.ReadDir(conf.Conf.TempDir)

Callers 1

InitConfigFunction · 0.85

Calls 1

FixAndCleanPathFunction · 0.92

Tested by

no test coverage detected