mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-28 04:05:21 +08:00
fix (plg_backend_local): don't enforce home to be set
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user