Repeat after me, filepath.Join uses "," to separate args, not "+"
authorOllivier Robert <roberto@keltia.net>
Mon, 10 Apr 2017 22:20:13 +0200
changeset 56 e25d0d0dc8ed
parent 55 59e1d6fb139f
child 57 5effcb7253a8
Repeat after me, filepath.Join uses "," to separate args, not "+" #sillyme
config.go
--- a/config.go	Mon Apr 10 21:46:24 2017 +0200
+++ b/config.go	Mon Apr 10 22:20:13 2017 +0200
@@ -91,11 +91,13 @@
 }
 
 func GetInstanceList() (list []string) {
-	list, err := filepath.Glob(filepath.Join(baseDir + "*.token"))
+	list, err := filepath.Glob(filepath.Join(baseDir, "*.token"))
+	log.Printf("basedir=%s", filepath.Join(baseDir, "*.token"))
 	if err != nil {
 		log.Printf("warning, no *.token files")
 		list = nil
 	}
+	log.Printf("list=%v", list)
 	return
 }