Create download directory in NewUser

This commit is contained in:
Ken-Håvard Lieng 2020-05-17 02:31:50 +02:00
parent 6b5bf4ced1
commit fa99a96733

View File

@ -37,6 +37,11 @@ func NewUser(store Store) (*User, error) {
return nil, err return nil, err
} }
err = os.Mkdir(Path.Downloads(user.Username), 0700)
if err != nil {
return nil, err
}
return user, nil return user, nil
} }