Don't return a null slice from server.ListPath, return an empty one
| Filename | |
|---|---|
| server/paths.go |
diff --git a/server/paths.go b/server/paths.go index 682f1dd..c8371dd 100644 --- a/server/paths.go +++ b/server/paths.go @@ -57,6 +57,7 @@ func ListPath(the_path string) (files []string, err error) { return nil, read_err } + files = make([]string, 0) for _, info := range fileinfos { name := info.Name() if info.IsDir() {