mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 08:22:24 +01:00
fix (plg_backend_local): don't enforce home to be set
This commit is contained in:
parent
645e604ecb
commit
c702402b87
1 changed files with 5 additions and 1 deletions
|
|
@ -46,7 +46,11 @@ func (this Local) LoginForm() Form {
|
|||
}
|
||||
|
||||
func (this Local) Home() (string, error) {
|
||||
return os.UserHomeDir()
|
||||
home, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
return "/", nil
|
||||
}
|
||||
return home, nil
|
||||
}
|
||||
|
||||
func (this Local) Ls(path string) ([]os.FileInfo, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue