Send download link on completion

This commit is contained in:
Ken-Håvard Lieng 2020-05-17 03:55:46 +02:00
parent fa99a96733
commit b92f5cfb43
6 changed files with 67 additions and 6 deletions

View file

@ -56,6 +56,10 @@ func (d directory) Downloads(username string) string {
return filepath.Join(d.User(username), "downloads")
}
func (d directory) DownloadedFile(username string, file string) string {
return filepath.Join(d.Downloads(username), file)
}
func (d directory) Config() string {
return filepath.Join(d.ConfigRoot(), "config.toml")
}