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

Function AttachmentLocalPath

internal/database/attachment.go:44–46  ·  view source on GitHub ↗

AttachmentLocalPath returns where attachment is stored in local file system based on given UUID.

(uuid string)

Source from the content-addressed store, hash-verified

42
43// AttachmentLocalPath returns where attachment is stored in local file system based on given UUID.
44func AttachmentLocalPath(uuid string) string {
45 return path.Join(conf.Attachment.Path, uuid[0:1], uuid[1:2], uuid)
46}
47
48// LocalPath returns where attachment is stored in local file system.
49func (a *Attachment) LocalPath() string {

Callers 1

LocalPathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected