Merge pull request #2 from lingej/patch-1
Use subdir instead of username in filepath
This commit is contained in:
commit
32fcc094b3
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ func (d Dir) resolve(ctx context.Context, name string) string {
|
|||
if authInfo != nil && authInfo.Authenticated {
|
||||
userInfo := d.Config.Users[authInfo.Username]
|
||||
if userInfo != nil && userInfo.Subdir != nil {
|
||||
return filepath.Join(dir, authInfo.Username, filepath.FromSlash(path.Clean("/"+name)))
|
||||
return filepath.Join(dir, *userInfo.Subdir, filepath.FromSlash(path.Clean("/"+name)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue