From da044ca59ae178932665a1aa2583a9959f5d8190 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 16 May 2024 21:40:02 -0400 Subject: [PATCH] Remove pre-existing config directory during init, structure Windows config directory more similarly to UNIX --- libmuttonserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmuttonserver.go b/libmuttonserver.go index 16c62b7..58b2c1d 100644 --- a/libmuttonserver.go +++ b/libmuttonserver.go @@ -31,7 +31,7 @@ func main() { // register a new device ID os.Create(backend.ConfigDir + backend.PathSeparator + "devices" + backend.PathSeparator + args[2]) case "init": - // create the necessary directories for libmuttonserver to function TODO consider clearing out old directories first + // create the necessary directories for libmuttonserver to function backend.DirInit() os.MkdirAll(backend.ConfigDir+backend.PathSeparator+"deletions", 0700) default: