From 9ccec587c0f9dbf58529429f2882b59ed02ba1c6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 3 Apr 2012 09:51:40 -0400 Subject: [PATCH] Don't return a null slice from server.ListPath, return an empty one --- server/paths.go | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.43.5