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

Method LocalPath

internal/database/attachment.go:49–51  ·  view source on GitHub ↗

LocalPath returns where attachment is stored in local file system.

()

Source from the content-addressed store, hash-verified

47
48// LocalPath returns where attachment is stored in local file system.
49func (a *Attachment) LocalPath() string {
50 return AttachmentLocalPath(a.UUID)
51}
52
53// NewAttachment creates a new attachment object.
54func NewAttachment(name string, buf []byte, file multipart.File) (_ *Attachment, err error) {

Callers 2

NewAttachmentFunction · 0.95
DeleteAttachmentsFunction · 0.45

Calls 1

AttachmentLocalPathFunction · 0.85

Tested by

no test coverage detected