MCPcopy Create free account
hub / github.com/gogs/gogs / WikiPath

Function WikiPath

internal/database/wiki.go:54–56  ·  view source on GitHub ↗

WikiPath returns wiki data path by given user and repository name.

(userName, repoName string)

Source from the content-addressed store, hash-verified

52
53// WikiPath returns wiki data path by given user and repository name.
54func WikiPath(userName, repoName string) string {
55 return filepath.Join(repoutil.UserPath(userName), strings.ToLower(repoName)+".wiki.git")
56}
57
58func (r *Repository) WikiPath() string {
59 return WikiPath(r.MustOwner().Name, r.Name)

Callers 4

WikiPathMethod · 0.85
MigrateRepositoryFunction · 0.85
TransferOwnershipFunction · 0.85
ChangeRepositoryNameFunction · 0.85

Calls 1

UserPathFunction · 0.92

Tested by

no test coverage detected