Create download directory in NewUser
This commit is contained in:
parent
6b5bf4ced1
commit
fa99a96733
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue