AttachmentLocalPath returns where attachment is stored in local file system based on given UUID.
(uuid string)
| 42 | |
| 43 | // AttachmentLocalPath returns where attachment is stored in local file system based on given UUID. |
| 44 | func 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. |
| 49 | func (a *Attachment) LocalPath() string { |