Add per-user download directory

This commit is contained in:
Ken-Håvard Lieng 2020-05-17 02:14:35 +02:00
parent 1532b2a8c8
commit 6b5bf4ced1
4 changed files with 6 additions and 4 deletions

View file

@ -52,6 +52,10 @@ func (d directory) Key(username string) string {
return filepath.Join(d.User(username), "key.pem")
}
func (d directory) Downloads(username string) string {
return filepath.Join(d.User(username), "downloads")
}
func (d directory) Config() string {
return filepath.Join(d.ConfigRoot(), "config.toml")
}