Create download directory in NewUser
This commit is contained in:
parent
6b5bf4ced1
commit
fa99a96733
@ -37,6 +37,11 @@ func NewUser(store Store) (*User, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = os.Mkdir(Path.Downloads(user.Username), 0700)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return user, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user