Remove pre-existing config directory during init, structure Windows config directory more similarly to UNIX

This commit is contained in:
2024-05-16 21:40:02 -04:00
parent 578aa60b76
commit 193d577477
5 changed files with 31 additions and 36 deletions
+1 -1
View File
@@ -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: