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

Function RepositoryLocalPath

internal/repoutil/repoutil.go:66–68  ·  view source on GitHub ↗

RepositoryLocalPath returns the absolute path of the repository local copy with the given ID.

(repoID int64)

Source from the content-addressed store, hash-verified

64// RepositoryLocalPath returns the absolute path of the repository local copy
65// with the given ID.
66func RepositoryLocalPath(repoID int64) string {
67 return filepath.Join(conf.Server.AppDataPath, "tmp", "local-repo", strconv.FormatInt(repoID, 10))
68}
69
70// RepositoryLocalWikiPath returns the absolute path of the repository local
71// wiki copy with the given ID.

Callers 3

deleteRepoLocalCopyFunction · 0.92
usersChangeUsernameFunction · 0.92
TestRepositoryLocalPathFunction · 0.85

Calls

no outgoing calls

Tested by 2

usersChangeUsernameFunction · 0.74
TestRepositoryLocalPathFunction · 0.68